Commit 559c33564270bb3cd1f4b2665587f0b98eae409d
1 parent
ab2031c3
Exists in
master
and in
3 other branches
Fix absence comment's displaying.
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> Signed-off-by: Pedro de Lyra Pereira <pedrodelyra@gmail.com>
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
views/comments_extra_field.html.erb
1 | 1 | <div id="input_institution_comments"> |
2 | 2 | <%= label_tag "input_institution", _("Organization name or Enterprise name")%> |
3 | - <span class="star-tooltip"></span> | |
3 | + <span class="star-tooltip" title="Digite o nome da empresa ou organização"></span> | |
4 | 4 | <input type="text" id="input_institution"> |
5 | 5 | |
6 | 6 | <%= content_tag(:div, _("No institution found"), | ... | ... |
views/communities_ratings_extra_fields_show_institution.html.erb
1 | -<% if user_rating.comment.institution %> | |
1 | +<% if user_rating.comment and user_rating.comment.institution %> | |
2 | 2 | <div class="aditional-informations"> |
3 | 3 | <div class="comments-user-institution"> |
4 | - <span>Institution :<span> <%= user_rating.comment.institution.name %> | |
4 | + <span>Institution :<span> <%= user_rating.comment.institution.name unless user_rating.comment.nil? %> | |
5 | 5 | </div> |
6 | 6 | </div> |
7 | 7 | <% end %> | ... | ... |