Initial commit
This commit is contained in:
12
app/views/projects/_empty_projects.html.erb
Normal file
12
app/views/projects/_empty_projects.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<section class="col-md-4 offset-md-4 text-center pt-4">
|
||||
<% if policy(Project).new? %>
|
||||
<h1><%= t(".heading") %></h1>
|
||||
<p class="pt-3"><%= t(".message") %></p>
|
||||
<p class="pt-5">
|
||||
<%= link_to fa_icon("plus", text: t(".action")), [:new, :project], class: "btn btn-success" %>
|
||||
</p>
|
||||
<% else %>
|
||||
<h1><%= t(".heading") %></h1>
|
||||
<p class="pt-3"><%= t(".member_message") %></p>
|
||||
<% end %>
|
||||
</section>
|
||||
Reference in New Issue
Block a user