expertiza/expertiza

View on GitHub
app/views/suggestion/list.html.erb

Summary

Maintainability
Test Coverage
<h2>Suggested topics for <%=h @assignment.name %></h2>
<%if @suggestions.size > 0 %>
  <div class="flash_note">
    Click View link to view the suggestion and to comment and/or approve
  </div>

  <table class="general" cellpadding=5 width=100% border=1>
    <tr>
      <th>Title</th>
      <th>Status</th>
      <th>Submitter's user name</th>
      <th>Action</th>
    </tr>

    <% for suggestion in @suggestions %>
      <tr class="listingRow">
        <td style="max-width: 200px"><%=h suggestion.title %></td>
        <td align="center"><%=h suggestion.status %></td>
        <td align="center"><%=h suggestion.unityID %></td>
        <td align="center"><%= link_to 'View', :action => 'show', :id => suggestion %></td>
      </tr>
    <% end %>
  </table>
<%else%>
  <b>No suggestions yet.</b>
<%end%>