diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2011-05-31 13:12:07 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2011-06-01 13:46:51 +0200 |
commit | 4e31553a3b85871e8f7305b1e1ffb931bba0a82d (patch) | |
tree | a2672d902bac9cb21816b8ac1fce0b85a483d258 /app | |
parent | Show question content when creating or editing answer (diff) | |
download | recruiting-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.dryml | 2 |
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:> |