Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tweaks the layout and user index to remove information not relevant f…

…or Bushido users
  • Loading branch information...
commit a5cf8685f6a1195349d896ed867d5b1c50960770 1 parent 3a902b8
@sgrove sgrove authored
View
11 app/views/layouts/application.html.erb
@@ -45,11 +45,16 @@
</ul>
<%- end %>
</li>
- <li><%= link_to current_user.email, edit_user_registration_path %></li>
- <li><%= link_to t('log out'), destroy_user_session_path %></li>
+ (<%= current_user.email %>)
+ <% unless Devise.on_bushido? %>
+ <li><%= link_to current_user.email, edit_user_registration_path %></li>
+ <% end %>
+ <li><%= link_to t('log out'), destroy_user_session_path %></li>
<% else %>
<li><%= link_to t('log in'), new_user_session_path %></li>
- <li><%= link_to t('sign up'), new_user_registration_path %></li>
+ <% unless Devise.on_bushido? %>
+ <li><%= link_to t('sign up'), new_user_registration_path %></li>
+ <% end %>
<% end %>
</ul>
</div>
View
42 app/views/users/index.html.erb
@@ -9,25 +9,27 @@
:method => :delete %></li>
<% end %>
</ul>
-<h2>Add a new member</h2>
-<div class="form-wrapper">
-<%= form_for project_users_path(@project, @user) do |f| %>
- <% fields_for :user do |u| %>
- <div class="field-wrapper">
- <%= u.label :email %>
- <div class="field"><%= u.text_field :email %></div>
- </div>
- <div class="field-wrapper">
- <%= u.label :name %>
- <div class="field"><%= u.text_field :name %></div>
- </div>
- <div class="field-wrapper">
- <%= u.label :initials %>
- <div class="field"><%= u.text_field :initials %></div>
- </div>
- <div class="actions">
- <%= u.submit 'Add user' %>
- </div>
+<% unless Devise.on_bushido? %>
+ <h2>Add a new member</h2>
+ <div class="form-wrapper">
+ <%= form_for project_users_path(@project, @user) do |f| %>
+ <% fields_for :user do |u| %>
+ <div class="field-wrapper">
+ <%= u.label :email %>
+ <div class="field"><%= u.text_field :email %></div>
+ </div>
+ <div class="field-wrapper">
+ <%= u.label :name %>
+ <div class="field"><%= u.text_field :name %></div>
+ </div>
+ <div class="field-wrapper">
+ <%= u.label :initials %>
+ <div class="field"><%= u.text_field :initials %></div>
+ </div>
+ <div class="actions">
+ <%= u.submit 'Add user' %>
+ </div>
+ <% end %>
<% end %>
+ </div>
<% end %>
-</div>
Please sign in to comment.
Something went wrong with that request. Please try again.