-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP Allow batch requesters to create citations
- Loading branch information
Showing
6 changed files
with
97 additions
and
15 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
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 |
---|---|---|
@@ -1,11 +1,23 @@ | ||
<% if citations.any? %> | ||
<% if can?(:create_citation, info_request_batch) || citations.any? %> | ||
<div class="sidebar__section citations"> | ||
<h2><%= _('In the News') %></h2> | ||
|
||
<% if citations.any? %> | ||
<ul class="citations-list"> | ||
<%= render citations %> | ||
</ul> | ||
<% elsif can? :create_citation, info_request_batch %> | ||
<p> | ||
<%= _('Has this batch request been referenced in a news article or ' \ | ||
'academic paper?') %> | ||
</p> | ||
<% end %> | ||
<% if can? :create_citation, info_request_batch %> | ||
<%= link_to new_info_request_batch_citation_path(info_request_batch), | ||
class: 'citations-new' do %> | ||
<%= citations.any? ? _('New Citation') : _('Let us know') %> | ||
<% end %> | ||
<% end %> | ||
</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