diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 34bca3c62..8260b40db 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -239,12 +239,6 @@ ul.facet-sort-wrap { margin-top: 5px; } -// Bootstrap's row -.row { - margin: 10px 0 10px 0; - //padding: 0px 0px 10px 0px; // Do not add padding to the row - messes up sidebar etc. -} - // From https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/ .dont-break-out { /* These are technically the same, but use both */ diff --git a/app/views/bans/new.html.erb b/app/views/bans/new.html.erb index 13e4a3452..7002353e1 100644 --- a/app/views/bans/new.html.erb +++ b/app/views/bans/new.html.erb @@ -1,17 +1,15 @@ -
-
- -
- <%= simple_form_for [@user, @ban], url: user_ban_path(@user) do |f| %> - <%= f.input :reason %> - <%= f.input :shadow, label: 'Shadowban?' %> -
- <%= f.submit 'Submit', class: 'btn btn-primary' %> - <%= link_to t('.cancel', default: t("helpers.links.cancel")), :back, class: 'btn btn-default' %> -
- <% end %> -
+ +
+
+ <%= simple_form_for [@user, @ban], url: user_ban_path(@user) do |f| %> + <%= f.input :reason %> + <%= f.input :shadow, label: 'Shadowban?' %> +
+ <%= f.submit 'Submit', class: 'btn btn-primary' %> + <%= link_to t('.cancel', default: t("helpers.links.cancel")), :back, class: 'btn btn-default' %> +
+ <% end %>
diff --git a/app/views/collections/curate.html.erb b/app/views/collections/curate.html.erb index e1d1d7a66..a173db7c6 100644 --- a/app/views/collections/curate.html.erb +++ b/app/views/collections/curate.html.erb @@ -1,50 +1,49 @@ <%- model_class = Collection -%> -
-
- +<% end %> diff --git a/app/views/collections/edit.html.erb b/app/views/collections/edit.html.erb index 32d865aee..7ad680834 100644 --- a/app/views/collections/edit.html.erb +++ b/app/views/collections/edit.html.erb @@ -1,16 +1,12 @@ <%- model_class = Collection -%> -
-
- -
-
- <%= render :partial => 'collections/partials/general_collection_info' %> -
-
- <%= render :partial => 'form' %> -
-
+ +
+
+ <%= render :partial => 'collections/partials/general_collection_info' %> +
+
+ <%= render :partial => 'form' %>
diff --git a/app/views/collections/new.html.erb b/app/views/collections/new.html.erb index b9c8944c8..6dedd0b95 100644 --- a/app/views/collections/new.html.erb +++ b/app/views/collections/new.html.erb @@ -1,17 +1,12 @@ <%- model_class = Collection -%> - -
-
- -
-
- <%= render :partial => 'collections/partials/general_collection_info' %> -
-
- <%= render :partial => 'form' %> -
-
+ +
+
+ <%= render :partial => 'collections/partials/general_collection_info' %> +
+
+ <%= render :partial => 'form' %>
diff --git a/app/views/collections/show.html.erb b/app/views/collections/show.html.erb index b8f212d71..34e128400 100644 --- a/app/views/collections/show.html.erb +++ b/app/views/collections/show.html.erb @@ -21,7 +21,7 @@ <%= delete_button(@collection) if policy(@collection).destroy? %>
-
+
<% materials = @collection.materials %> <% materials_count = @collection.materials.count %> <% events = @collection.events %> diff --git a/app/views/common/_associated_events.html.erb b/app/views/common/_associated_events.html.erb index 39e3c2add..4cfccfb43 100644 --- a/app/views/common/_associated_events.html.erb +++ b/app/views/common/_associated_events.html.erb @@ -12,27 +12,23 @@ <% active = activator.check_pane(id) if activator %>
-
-
-
- Showing <%= pluralize(shown_count, name) -%> - <% all_btn_text = "Filter #{name.pluralize(shown_count)}" %> - <% if limit && total_count > limit %> - out of <%= total_count -%> - <% all_btn_text = "View all #{name.pluralize(shown_count)} & filter" %> - <% end %> - <% if past_count > 0 %> - (also found <%= pluralize(past_count, 'past event') %>) - <% end %> -
- - <% if shown_count > 0 && view_all_link %> - <%= link_to all_btn_text, view_all_link, class: 'btn btn-xs btn-default' %> - <% elsif past_count > 0 && inc_expired_link %> - <%= link_to "View all #{name.pluralize(shown_count)} & filter", inc_expired_link, class: 'btn btn-xs btn-default' %> - <% end %> -
+
+ Showing <%= pluralize(shown_count, name) -%> + <% all_btn_text = "Filter #{name.pluralize(shown_count)}" %> + <% if limit && total_count > limit %> + out of <%= total_count -%> + <% all_btn_text = "View all #{name.pluralize(shown_count)} & filter" %> + <% end %> + <% if past_count > 0 %> + (also found <%= pluralize(past_count, 'past event') %>) + <% end %>
+ <% if shown_count > 0 && view_all_link %> + <%= link_to all_btn_text, view_all_link, class: 'btn btn-xs btn-default' %> + <% elsif past_count > 0 && inc_expired_link %> + <%= link_to "View all #{name.pluralize(shown_count)} & filter", inc_expired_link, class: 'btn btn-xs btn-default' %> + <% end %> + <%= render partial: 'common/masonry_grid', locals: { objects: resources } %>
diff --git a/app/views/common/_associated_resources.html.erb b/app/views/common/_associated_resources.html.erb index 1340e3916..3e0b7030e 100644 --- a/app/views/common/_associated_resources.html.erb +++ b/app/views/common/_associated_resources.html.erb @@ -9,21 +9,17 @@ <% active = activator.check_pane(id) if activator %>
-
-
-
- Showing <%= pluralize(shown_count, name) -%> - <% if limit && total_count > limit %> - out of <%= total_count -%> - <% all_btn_text = 'View all & filter' %> - <% else %> - <% all_btn_text = 'Filter' %> - <% end %> -
- - <%= link_to all_btn_text, view_all_link, class: 'btn btn-xs btn-default' if view_all_link %> -
+
+ Showing <%= pluralize(shown_count, name) -%> + <% if limit && total_count > limit %> + out of <%= total_count -%> + <% all_btn_text = 'View all & filter' %> + <% else %> + <% all_btn_text = 'Filter' %> + <% end %>
+ <%= link_to all_btn_text, view_all_link, class: 'btn btn-xs btn-default' if view_all_link %> + <%= render partial: 'common/masonry_grid', locals: { objects: resources } %>
diff --git a/app/views/common/_external_resource.html.erb b/app/views/common/_external_resource.html.erb index 32aaa6596..88a84ee14 100644 --- a/app/views/common/_external_resource.html.erb +++ b/app/views/common/_external_resource.html.erb @@ -1,5 +1,5 @@ <% api_url = external_resource.api_url_of_tool -%> -<%= content_tag(:div, class: 'col-md-12 col-sm-12 bounding-box', data: { 'biotools-url': api_url }) do %> +<%= content_tag(:div, class: 'bounding-box', data: { 'biotools-url': api_url }) do %> <%= link_to(external_resource.url, target: '_blank', rel: 'nofollow noopener') do %>
diff --git a/app/views/common/_external_resources_list.html.erb b/app/views/common/_external_resources_list.html.erb index 3d78e569d..be5649fd6 100644 --- a/app/views/common/_external_resources_list.html.erb +++ b/app/views/common/_external_resources_list.html.erb @@ -1,4 +1,4 @@ -
+
<% external_resources.each do |external_resource| %> <% unless external_resource.failing? & !current_user&.is_admin? -%> <%= render partial: 'common/external_resource', object: external_resource %> diff --git a/app/views/common/_mixed_resources.html.erb b/app/views/common/_mixed_resources.html.erb index 26a7f13cc..7a612eb7b 100644 --- a/app/views/common/_mixed_resources.html.erb +++ b/app/views/common/_mixed_resources.html.erb @@ -28,13 +28,11 @@
<% if !TeSS::Config.feature['disabled'].include? 'topics' %> -
<%= display_attribute(resource, :scientific_topics) { |values| values.map { |x| "#{x.preferred_label.to_s}" }.join(', ') } %> <%= display_attribute(resource, :keywords) { |values| values.join(', ') } if resource.keywords.any? %> <%= yield %> -
<% end %>
diff --git a/app/views/common/_topic_suggestions.html.erb b/app/views/common/_topic_suggestions.html.erb index efcaad1df..b524ee5ff 100644 --- a/app/views/common/_topic_suggestions.html.erb +++ b/app/views/common/_topic_suggestions.html.erb @@ -2,7 +2,7 @@
<%= link_to(suggestion.material.title, suggestion, class: 'list-card-heading') %> -
+
<%= icon_for(:suggestion, :large) %> diff --git a/app/views/content_providers/edit.html.erb b/app/views/content_providers/edit.html.erb index 25e95ae0e..007cf1857 100644 --- a/app/views/content_providers/edit.html.erb +++ b/app/views/content_providers/edit.html.erb @@ -1,16 +1,12 @@ <%- model_class = ContentProvider -%> -
-
- -
-
- <%= render :partial => 'content_providers/partials/general_content_provider_info' %> -
-
- <%= render :partial => 'form' %> -
-
+ +
+
+ <%= render :partial => 'content_providers/partials/general_content_provider_info' %> +
+
+ <%= render :partial => 'form' %>
diff --git a/app/views/content_providers/new.html.erb b/app/views/content_providers/new.html.erb index ec27e5987..536143ad4 100644 --- a/app/views/content_providers/new.html.erb +++ b/app/views/content_providers/new.html.erb @@ -1,16 +1,12 @@ <%- model_class = ContentProvider -%> -
-
- -
-
- <%= render :partial => 'content_providers/partials/general_content_provider_info' %> -
-
- <%= render :partial => 'form' %> -
-
+ +
+
+ <%= render :partial => 'content_providers/partials/general_content_provider_info' %> +
+
+ <%= render :partial => 'form' %>
diff --git a/app/views/content_providers/show.html.erb b/app/views/content_providers/show.html.erb index 71316ad65..3118710d7 100644 --- a/app/views/content_providers/show.html.erb +++ b/app/views/content_providers/show.html.erb @@ -17,7 +17,7 @@
-
+
<% resource_limit = 30 %> <% materials = @content_provider.materials.from_verified_users.limit(resource_limit) %> <% materials_count = @content_provider.materials.from_verified_users.count %> @@ -65,7 +65,7 @@ <% if policy(@content_provider).update? && TeSS::Config.feature['sources'] %>
<% if policy(Source).new? %> -
+
<%= link_to new_content_provider_source_path(@content_provider), class: 'btn btn-primary' do %> Add source <% end %> @@ -76,9 +76,8 @@
<% end %> -
- <%= render partial: 'common/masonry_grid', locals: { objects: sources } %> -
+ + <%= render partial: 'common/masonry_grid', locals: { objects: sources } %>
<% end %>
diff --git a/app/views/curator/_leaderboard.html.erb b/app/views/curator/_leaderboard.html.erb index 35a7ffb46..657b50532 100644 --- a/app/views/curator/_leaderboard.html.erb +++ b/app/views/curator/_leaderboard.html.erb @@ -6,7 +6,7 @@ <% leaderboard.each do |curator, scores| %>