Skip to content

Commit

Permalink
disable collection links
Browse files Browse the repository at this point in the history
  • Loading branch information
pzupan committed Oct 31, 2019
1 parent e148fd7 commit 0370b7b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/application/_appheader.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<% if policy(Tier).manage? %>
<li><%= link_to 'Tiers List', tiers_path, 'data-hover' => 'Tiers', :rel => 'tiers' %></li>
<% end %>
<% if policy(Collection).manage? %>
<% if false # policy(Collection).manage? %>
<li><%= link_to 'Collections List', collections_path, 'data-hover' => 'Collections', :rel => 'collections' %></li>
<% end %>
<% if !signed_in? %>
Expand Down
6 changes: 5 additions & 1 deletion app/views/extensions/_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<% end %>
</div>

<% if extension.collections.present? %>
<% if false # extension.collections.present? %>
<h4>
<i class="fa fa-list"></i> Collections
</h4>
Expand Down Expand Up @@ -219,6 +219,8 @@

</div>

<% if false %>

<% content_for :script do %>

<script>
Expand Down Expand Up @@ -248,4 +250,6 @@

</script>

<% end %>

<% end %>
4 changes: 3 additions & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@
<div class="footer-links">
<%= link_to "Sensu.io", "http://sensu.io/" %>
<%= link_to "#{t('nouns.extension').titleize} Directory", extensions_path %>
<%= link_to "#{t('nouns.extension').titleize} Collections", extensions_collections_path %>
<% if false %>
<%= link_to "#{t('nouns.extension').titleize} Collections", extensions_collections_path %>
<% end %>
<%= link_to "User List", contributors_path %>
<%= link_to "Issues", "https://github.com/sensu/bonsai-asset-index/issues" %>
</div>
Expand Down

0 comments on commit 0370b7b

Please sign in to comment.