Skip to content

Commit

Permalink
Add some links to /citations
Browse files Browse the repository at this point in the history
Add some basic navigation links to the new public list of citations.

It would be nice to add a homepage section for this by extracting out
the intro text of citations/index into a partial, but let's leave that
for a later release to give people a chance to build up a list of
citations before heavier promotion.
  • Loading branch information
garethrees committed Oct 9, 2024
1 parent f23b5b1 commit 5b533d7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/citations/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<%= _('Has this request been referenced in journalism, campaigning, ' \
'or research?') %>
<% end %>
<%= _('Let us know about great examples of <a href="{{citations_path}}">' \
'FOI in Action</a>.',
citations_path: citations_path) %>
</p>

<%= form_for @citation,
Expand Down
6 changes: 6 additions & 0 deletions app/views/info_request_batch/_citations.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
<%= _('Let us know') %>
<% end %>
</p>
<% else %>
<p>
<%= _('See more examples of <a href="{{citations_path}}">' \
'FOI in Action</a>.',
citations_path: citations_path) %>
</p>
<% end %>
</div>
<% end %>
6 changes: 6 additions & 0 deletions app/views/request/_citations.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
<%= _('Let us know') %>
<% end %>
</p>
<% else %>
<p>
<%= _('See more examples of <a href="{{citations_path}}">' \
'FOI in Action</a>.',
citations_path: citations_path) %>
</p>
<% end %>
</div>
<% end %>
3 changes: 3 additions & 0 deletions app/views/request/_tabs.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
<li class="<%= 'selected' if current_page?(requests_path) %>">
<%= link_to _('Browse by category'), requests_path %>
</li>
<li>
<%= link_to _('FOI in Action'), citations_path %>
</li>
<% end %>

0 comments on commit 5b533d7

Please sign in to comment.