Skip to content

Commit

Permalink
[webui] Don't choke on empty request descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
saschpe committed Mar 23, 2012
1 parent 96da094 commit db363fe
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/webui/app/views/request/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
<div class="box show_left clearfix">
<div class="grid_7 alpha omega">
<h3><%= @pagetitle %> (<%= @state %>)</h3>
<% if @req.value(:description).empty? %>
<p><i>No request description</i></p>
<% else %>
<p id="expandable_comment"><%= format_comment(@req.value(:description)) %></p>
<% if @req.value(:description) %>
<% if @rev.value(:description).empty? %>
<p><i>No request description</i></p>
<% else %>
<p id="expandable_comment"><%= format_comment(@req.value(:description)) %></p>
<% end %>
<% end %>
</div>
<div class="grid_3 alpha omega">
Expand Down

0 comments on commit db363fe

Please sign in to comment.