From 7d640a1a70084d7b1502f16664ffb74dd3400f10 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Wed, 9 Nov 2016 12:07:09 -0600 Subject: [PATCH] Space the action icons evenly across the page Refs #2698 (Fixes third bullet) --- app/views/dashboard/_create_work_action.html.erb | 2 +- .../dashboard/_index_partials/_heading_actions.html.erb | 6 +++--- app/views/dashboard/_select_work_type.html.erb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/dashboard/_create_work_action.html.erb b/app/views/dashboard/_create_work_action.html.erb index 0ec507db90..e8fa4dafdc 100644 --- a/app/views/dashboard/_create_work_action.html.erb +++ b/app/views/dashboard/_create_work_action.html.erb @@ -2,7 +2,7 @@ <% if classification.authorized_models.size > 1 %> <%= render 'select_work_type', presenter: Sufia::SelectTypeListPresenter.new(classification) %> <% else %> -
+
<% classification.each do |concern| %> <%= link_to(new_polymorphic_path([main_app, concern]), class: "item-option contextual-quick-classify #{dom_class(concern, 'new').gsub('_', '-')}", diff --git a/app/views/dashboard/_index_partials/_heading_actions.html.erb b/app/views/dashboard/_index_partials/_heading_actions.html.erb index 79938905cc..05b06109e1 100644 --- a/app/views/dashboard/_index_partials/_heading_actions.html.erb +++ b/app/views/dashboard/_index_partials/_heading_actions.html.erb @@ -4,20 +4,20 @@ <%= render 'create_work_action' %> <% end %> <% if can?(:create, Collection) %> -
+
<%= link_to new_collection_path, id: "hydra-collection-add" do %> <%= t("sufia.dashboard.create_collection") %> <% end %>
<% end %> -
+
<%= link_to sufia.dashboard_works_path do %> <%= t("sufia.dashboard.view_works") %> <% end %>
-
+
<%= link_to sufia.dashboard_collections_path, id: "hydra-collection-view" do %> <%= t("sufia.dashboard.view_collections") %> diff --git a/app/views/dashboard/_select_work_type.html.erb b/app/views/dashboard/_select_work_type.html.erb index 03cd9b9547..cad583ab38 100644 --- a/app/views/dashboard/_select_work_type.html.erb +++ b/app/views/dashboard/_select_work_type.html.erb @@ -38,8 +38,8 @@
-
- <%= link_to('#', data: { toggle: "modal", target:"#worktypes-to-create" }) do %> +
+ <%= link_to('#', data: { toggle: "modal", target: "#worktypes-to-create" }) do %> <%= t("sufia.dashboard.create_work") %> <% end %>