aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-05-31 13:12:07 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-06-01 13:46:51 +0200
commit4e31553a3b85871e8f7305b1e1ffb931bba0a82d (patch)
treea2672d902bac9cb21816b8ac1fce0b85a483d258 /app
parentShow question content when creating or editing answer (diff)
downloadrecruiting-webapp-4e31553a3b85871e8f7305b1e1ffb931bba0a82d.tar.gz
recruiting-webapp-4e31553a3b85871e8f7305b1e1ffb931bba0a82d.tar.bz2
recruiting-webapp-4e31553a3b85871e8f7305b1e1ffb931bba0a82d.zip
Don't show (Not available) card on answer pages
The application showed (Not available) card when someone viewed answer for question with no reference answer. Then the reference answer was nil. Anyone could view nil, but it was shown as (Not available) card. Fix bug: https://bugs.gentoo.org/show_bug.cgi?id=368179
Diffstat (limited to 'app')
-rw-r--r--app/views/taglibs/detailed.dryml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/taglibs/detailed.dryml b/app/views/taglibs/detailed.dryml
index ceb8dc9..f36882a 100644
--- a/app/views/taglibs/detailed.dryml
+++ b/app/views/taglibs/detailed.dryml
@@ -31,7 +31,7 @@
</div>
<with:question.reference_answer param="reference-answer">
- <card if="&can_view?">
+ <card if="& this and can_view?">
<header:>
<h5>Reference answer:</h5>
</header:>