diff --git a/app/views/domains/index.html.erb b/app/views/domains/index.html.erb index 28ebced..abd65c6 100644 --- a/app/views/domains/index.html.erb +++ b/app/views/domains/index.html.erb @@ -1,55 +1,55 @@ <% if current_user.memberships.empty? %>
In order to manage domains you have to be a member of a group.
You can either contact an admin to create a new group for you, or ask another user for an invite to an existing group.
+ | <%= link_to group.name, group_path(group) %> <%= link_to glyph('menu-down'), "##{group.id}", onclick: "$('tr.group-#{group.id}').toggleClass('hidden');" %> | -Controls | +Controls | ||||
---|---|---|---|---|---|---|---|
<%= link_to domain.name, domain %> | <% if domain.reverse? %> <%= abbr_glyph('chevron-left', 'Reverse') %> <% elsif domain.enum? %> <%= abbr_glyph('phone-alt', 'Enum') %> <% else %> <%= abbr_glyph('chevron-right', 'Forward') %> <% end %> <% if domain.slave? %> <%= abbr_glyph('link', 'Slave') %> <% end %> | +<%= link_to domain.name, domain %> | <%= link_to_edit edit_domain_path(domain) %> | <%= link_to_destroy domain, method: :delete, data: { confirm: 'Are you sure?' } %> |
<% if current_user.memberships.any? %> <%= link_to 'Add Domain', new_domain_path, class: 'btn btn-primary' %> <% else %> <%= link_to 'Add Domain', new_domain_path, class: 'btn btn-primary disabled' %> <% end %>
diff --git a/app/views/groups/show.html.erb b/app/views/groups/show.html.erb index 418aa55..cf564ef 100644 --- a/app/views/groups/show.html.erb +++ b/app/views/groups/show.html.erb @@ -1,80 +1,80 @@ <% content_for :more_breadcrumbs do %>Domain | Controls | |||
---|---|---|---|---|
<%= link_to domain.name, domain %> | <% if domain.reverse? %> <%= abbr_glyph('chevron-left', 'Reverse') %> <% elsif domain.enum? %> <%= abbr_glyph('phone-alt', 'Enum') %> <% else %> <%= abbr_glyph('chevron-right', 'Forward') %> <% end %> <% if domain.slave? %> <%= abbr_glyph('link', 'Slave') %> <% end %> | +<%= link_to domain.name, domain %> | <%= link_to_edit edit_domain_path(domain) %> | <%= link_to_destroy domain, method: :delete, data: { confirm: 'Are you sure?' } %> |
<%= link_to 'Add Domain', new_domain_path(group_id: @group.id), class: 'btn btn-primary' %>
Member | Controls |
---|---|
<%= membership.user.email %><%= " (you)" if current_user == membership.user %> | <%= link_to_destroy destroy_member_group_path(@group, membership.user_id), method: :delete %> |
<%= bootstrap_form_tag(url: create_member_group_path(@group), layout: :inline) do |f| %> <%= f.text_field :email, prepend: 'Add Member', hide_label: true, id: 'js-search-member', data: { group: @group.id } %> <%= f.submit 'Add', class: 'btn btn-primary' %> <% end %>