Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Added account tags to browse views and API lists.
Browse files Browse the repository at this point in the history
Closes #8.
  • Loading branch information
globalspin committed Jul 8, 2013
1 parent ae26454 commit 3a25a7c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/views/howto/browse.html.erb
Expand Up @@ -54,6 +54,7 @@
<tr>
<th>Account URL</th>
<th>Managing Organization</th>
<th>Tags</th>
<th>Last Updated</th>
<% if current_token %>
<th>Actions</th>
Expand All @@ -71,6 +72,7 @@
<%= outlet.organization %>
<% end %>
</td>
<td><%= outlet.tags.join(', ') %></td>
<td><%= outlet.updated_at.to_s(:human) %></td>
<% if current_token %>
<td><a class="btn" href="<%= howto_add_outlet_path :service_url => outlet.service_url, :auth_token => current_token.token %>" target="_blank">Edit</a></td>
Expand Down
2 changes: 2 additions & 0 deletions app/views/outlets/list.html.erb
Expand Up @@ -37,6 +37,7 @@
<th>Service</th>
<th>Account</th>
<th>Agencies</th>
<th>Tags</th>
</tr>
</thead>
<tbody>
Expand All @@ -47,6 +48,7 @@
<td><%= outlet.service %></td>
<td><%= outlet.account %></td>
<td><%= outlet.agencies.map {|a| a.name}.join(", ") %></td>
<td><%= outlet.tags.join(", ") %></td>
</tr>
<% end %>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion lib/boxer/outlet_boxes.rb
Expand Up @@ -13,6 +13,7 @@
:details_url => show_outlet_url(:service => outlet.service, :account => outlet.account, :host => ENV['RINGSAIL_API_HOST']),
:agencies => outlet.agencies.map { |agency| Boxer.ship(:agency, agency) },
:organization => outlet.organization,
:tags => outlet.tags.map { |tag| tag.name },
}
else
{}
Expand All @@ -24,7 +25,6 @@
:display_name => outlet.service_info.display_name,
:info_url => outlet.info_url,
:language => outlet.language,
:tags => outlet.tags.map { |tag| tag.name },
:updated_at => outlet.updated_at.to_s(:iso),
:updated_by => outlet.masked_updated_by,
}
Expand Down

0 comments on commit 3a25a7c

Please sign in to comment.