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 b6b6ef46e063e8f358eac3c64dc6ad8a440a918f..26dad64cfe1907eb415acb84f3880be59abdc8e5 100644
(file)
--- a/
app/views/redactions/index.html.erb
+++ b/
app/views/redactions/index.html.erb
@@
-10,3
+10,9
@@
<% else %>
<p><%= t ".empty" %></p>
<% end %>
<% else %>
<p><%= t ".empty" %></p>
<% end %>
+
+<% if can?(:create, Redaction) %>
+ <div>
+ <%= link_to t(".new"), new_redaction_path, :class => "btn btn-outline-primary" %>
+ </div>
+<% end %>