Skip to content

Commit

Permalink
Updated some code spacing.
Browse files Browse the repository at this point in the history
  • Loading branch information
aunindadf committed May 9, 2016
1 parent 45aa40b commit 75e50fb
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions views/projects/documents.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@
</thead>
<tbody>
<% project['document_links'].each do |document| %>
<tr class="result-list-row">
<th scope="row"><a href="<%=document['url']%>"><%= document['title'][0]['narratives'][0]['text'].gsub(/\.[^.]*$/, '') %></a></th>
<% if document['title'][0]['narratives'][0]['language']['code'] != "en" then%>
<td scope="col">
<span class="language">
<%= document['title'][0]['narratives'][0]['language']['name'] %>
</span>
</td>
<% end %>
<td scope="col">
<%= if !document['format'].nil? then iati_mime_type document['format']['code'] else "" end %>
</td>
<td scope="col">
<% document['categories'].each do |category| %>
<span class="category">
<%= category['name']%>
<tr class="result-list-row">
<th scope="row"><a href="<%=document['url']%>"><%= document['title'][0]['narratives'][0]['text'].gsub(/\.[^.]*$/, '') %></a></th>
<% if document['title'][0]['narratives'][0]['language']['code'] != "en" then%>
<td scope="col">
<span class="language">
<%= document['title'][0]['narratives'][0]['language']['name'] %>
</span>
<% end %>
</td>
</tr>
</td>
<% end %>
<td scope="col">
<%= if !document['format'].nil? then iati_mime_type document['format']['code'] else "" end %>
</td>
<td scope="col">
<% document['categories'].each do |category| %>
<span class="category">
<%= category['name']%>
</span>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>
Expand Down

0 comments on commit 75e50fb

Please sign in to comment.