Skip to content

Commit

Permalink
Project button spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacall authored and stuzart committed Feb 12, 2019
1 parent 15675d2 commit 1fc5c51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/projects/_buttons.html.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<% if Seek::Config.project_browser_enabled && logged_in_and_registered? && current_user.person.member_of?(item) -%>
<% if Seek::Config.project_browser_enabled && logged_in_and_registered? && current_user.person.member_of?(item) %>
<%= button_link_to("Organize", 'organise', project_folders_path(item.id)) -%>
<% end -%>
<% if can_browse_openbis?(item) %>
<%= button_link_to("Browse openBIS", :openbis_square, openbis_endpoint_path(item.openbis_endpoints.last),{icon_options:{height:'18px'}}) %>
<% end %>
<% if item.try(:has_member?,current_user) %>
<%= button_link_to("Dashboard", 'project_dashboard', dashboard_project_stats_path(item)) -%>
<%= button_link_to("Dashboard", 'project_dashboard', dashboard_project_stats_path(item)) %>
<% end -%>
<%= button_link_to('Overview', 'graph_nodes', overview_project_path(item)) -%>
<% if item.try(:has_member?,current_user) || admin_logged_in? -%>
Expand All @@ -15,14 +15,14 @@
<% if request_project_membership_button_enabled?(item) %>
<span id="request_membership_button">
<%= button_link_to("Request membership", "message", '#', 'data-toggle' => 'modal', 'data-target' => "#request-membership-dialog") -%>
<%= button_link_to("Request membership", "message", '#', 'data-toggle' => 'modal', 'data-target' => "#request-membership-dialog") %>
</span>
<% elsif log = request_project_memberhip_pending?(item) %>
<%
reason = "A recent request was made, and cannot be made again for another #{log.hours_until_next_allowed_str}"
%>
<span data-tooltip='<%= reason %>'>
<%= button_link_to("Request membership", "message", '#', disabled: true) -%>
<%= button_link_to("Request membership", "message", '#', disabled: true) %>
</span>
<% end -%>
Expand Down

0 comments on commit 1fc5c51

Please sign in to comment.