-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaning up the overcrowded navbar by moving individual resource menu…
… items into resource pages.
- Loading branch information
Showing
23 changed files
with
92 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<% if user_signed_in? %> | ||
<div class="navbar"> | ||
<ul> | ||
<li><span><strong>DISTRIBUTION POINTS: </strong></span></li> | ||
<li><%= link_to "Outdated Distribution Point Records", outdated_distribution_points_path %></li> | ||
<% if admin? %> | ||
<li><%= link_to "Distribution Points Update Queue", drafts_distribution_points_path %></li> | ||
<li><%= link_to "Archived Distribution Points", archived_distribution_points_path %></li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% content_for :sub_menu { render partial: 'menu' } %> | ||
|
||
<h1>Distribution Points Update Queue</h2> | ||
|
||
<%= render "shared/drafts_table", rows: @drafts, columns: @columns, headers: @headers %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% content_for :sub_menu { render partial: 'menu' } %> | ||
|
||
<%= render @page %> | ||
<h1>Distribution Points</h1> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% content_for :sub_menu { render partial: 'menu' } %> | ||
|
||
<h1>New Distribution Point</h1> | ||
|
||
<%= render 'form', distribution_point: @distribution_point %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% content_for :sub_menu { render partial: 'menu' } %> | ||
|
||
<h1>Distribution Points Needing Updates</h2> | ||
|
||
<%= render "shared/table", rows: @distribution_points, columns: @columns, headers: @headers, reverse_chron: true %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<% if admin? %> | ||
<div class="navbar"> | ||
<ul> | ||
<li><span><strong>NEEDS: </strong></span></li> | ||
<li><%= link_to "Needs Update Queue", drafts_needs_path %></li> | ||
</ul> | ||
</div> | ||
<% end %> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% content_for :sub_menu { render partial:'menu' } %> | ||
|
||
<h1>Needs Update Queue</h2> | ||
|
||
<%= render "shared/drafts_table", rows: @drafts, columns: @columns, headers: @headers %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% content_for :sub_menu { render partial:'menu' } %> | ||
|
||
<h1>Edit Need <%= @need.id %></h1> | ||
|
||
<%= render 'form', need: @need %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% content_for :sub_menu { render partial:'menu' } %> | ||
|
||
<h1>Needs</h1> | ||
|
||
<script type="text/javascript"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% content_for :sub_menu { render partial:'menu' } %> | ||
|
||
<h1>New Need</h1> | ||
|
||
<%= render 'form', need: @need %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<% if user_signed_in? %> | ||
<div class="navbar"> | ||
<ul> | ||
<li><span><strong>SHELTERS: </strong></span></li> | ||
<li><%= link_to "Help Call Shelters", outdated_shelters_path %></li> | ||
<% if admin? %> | ||
<li><%= link_to "Shelters Update Queue", drafts_shelters_path %></li> | ||
<li><%= link_to "Archived Shelters", archived_shelters_path %></li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% content_for :sub_menu { render partial: 'menu' } %> | ||
|
||
<h1>Shelters Update Queue</h2> | ||
|
||
<%= render "shared/drafts_table", rows: @drafts, columns: @columns, headers: @headers %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% content_for :sub_menu { render partial: 'menu' } %> | ||
|
||
<%= render @page %> | ||
<h1>Shelters</h1> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% content_for :sub_menu { render partial: 'menu' } %> | ||
|
||
<h1>New Shelter</h1> | ||
|
||
<%= render 'form', shelter: @shelter %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% content_for :sub_menu { render partial: 'menu' } %> | ||
|
||
<h1>Shelters Needing Updates</h2> | ||
|
||
<%= render "shared/table", rows: @outdated, columns: @columns, headers: @headers, reverse_chron: true %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% content_for :sub_menu { render partial: 'menu' } %> | ||
|
||
<h1><%= @shelter.shelter %></h1> | ||
|
||
|
||
|