remove a few unnecessary html_safe

This commit is contained in:
jomo
2016-05-19 20:23:34 +02:00
parent f633b49eca
commit 8beb2d39db
2 changed files with 6 additions and 2 deletions

View File

@@ -29,7 +29,7 @@
</ul>
</div>
<div id="userbar">
<div id="userinfo" <%= "class=\"logged-out\"".html_safe unless current_user %>>
<div id="userinfo" class="<%= "logged-out" unless current_user %>">
<% if current_user %>
<span id="userinfo-box">
<%= link_to current_user.name, current_user %><br/>

View File

@@ -102,5 +102,9 @@
</tbody>
</table>
About:<br>
<%= @user.about.blank? ? "<span class=\"no-about\">nothing</span>".html_safe : render_md(@user.about).html_safe %>
<% if @user.about.blank? %>
<span class="no-about">nothing</span>
<% else %>
<%= render_md(@user.about).html_safe %>
<% end %>
</div>