projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4919 from rkoeze/rkoeze/add-github-pr-template
[rails.git]
/
app
/
views
/
redactions
/
index.html.erb
diff --git
a/app/views/redactions/index.html.erb
b/app/views/redactions/index.html.erb
index b53e9b74780496119932f321eb31e4884bd6f340..26dad64cfe1907eb415acb84f3880be59abdc8e5 100644
(file)
--- a/
app/views/redactions/index.html.erb
+++ b/
app/views/redactions/index.html.erb
@@
-1,10
+1,18
@@
-<% @title = t(
'.title'
) %>
+<% @title = t(
".title"
) %>
<% content_for :heading do %>
<% content_for :heading do %>
- <h1><%= t(
'.heading'
) %></h1>
+ <h1><%= t(
".heading"
) %></h1>
<% end %>
<% unless @redactions.empty? %>
<% end %>
<% unless @redactions.empty? %>
- <%= render :partial => 'redactions' %>
+ <ul id="redaction_list">
+ <%= render @redactions %>
+ </ul>
<% else %>
<% else %>
- <p><%= t '.empty' %></p>
+ <p><%= t ".empty" %></p>
+<% end %>
+
+<% if can?(:create, Redaction) %>
+ <div>
+ <%= link_to t(".new"), new_redaction_path, :class => "btn btn-outline-primary" %>
+ </div>
<% end %>
<% end %>