Starting companies and admin
This commit is contained in:
Binary file not shown.
@@ -1,2 +1,21 @@
|
||||
<h1>CAF Compliance Tracking</h1>
|
||||
<h2>By Hidden Agenda Ltd</h2>
|
||||
|
||||
<% if !user_signed_in? %>
|
||||
Not Signed in.
|
||||
|
||||
<% else %>
|
||||
<%#= current_user.roletxt %>
|
||||
<% if current_user.admin? %>
|
||||
<h2>Companies</h2>
|
||||
<%= link_to "Add Company", new_company_path %>
|
||||
|
||||
<% @companies.each do |company| %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% if current_user.user? %>
|
||||
User Stuff here!
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user