From 0b74022f030d3af9fc44eb6a94db0a3024cac6dd Mon Sep 17 00:00:00 2001 From: f Date: Thu, 20 Apr 2023 18:23:58 -0300 Subject: [PATCH] fix: estandarizar las columnas #13179 --- app/views/build_stats/index.haml | 2 +- app/views/collaborations/collaborate.haml | 4 ++-- app/views/devise/confirmations/new.haml | 2 +- app/views/devise/invitations/edit.haml | 2 +- app/views/devise/invitations/new.haml | 2 +- app/views/devise/passwords/edit.haml | 2 +- app/views/devise/passwords/new.haml | 2 +- app/views/devise/registrations/edit.haml | 2 +- app/views/devise/registrations/new.haml | 2 +- app/views/devise/sessions/new.haml | 2 +- app/views/devise/unlocks/new.haml | 2 +- app/views/posts/edit.haml | 2 +- app/views/posts/index.haml | 2 +- app/views/posts/new.haml | 2 +- app/views/posts/show.haml | 2 +- app/views/sites/edit.haml | 2 +- app/views/sites/fetch.haml | 6 +++--- app/views/sites/index.haml | 2 +- app/views/sites/new.haml | 2 +- app/views/stats/index.haml | 2 +- app/views/usuaries/index.haml | 2 +- app/views/usuaries/invite.haml | 2 +- 22 files changed, 25 insertions(+), 25 deletions(-) diff --git a/app/views/build_stats/index.haml b/app/views/build_stats/index.haml index 27dc20d1..20c9c97e 100644 --- a/app/views/build_stats/index.haml +++ b/app/views/build_stats/index.haml @@ -1,5 +1,5 @@ %main.row - %aside.menu.col-md-3 + %aside.menu.col-12.col-lg-3 %h1= @site.title %p.lead= @site.description .col diff --git a/app/views/collaborations/collaborate.haml b/app/views/collaborations/collaborate.haml index 4d43ad7e..9daad84d 100644 --- a/app/views/collaborations/collaborate.haml +++ b/app/views/collaborations/collaborate.haml @@ -1,10 +1,10 @@ .row.align-items-center.justify-content-center.full-height - .col-md-10.align-self-center + .col-12.col-lg-10.align-self-center - welcome = @site.config.dig('welcome', 'message') || t('.welcome', site: @site.hostname) = sanitize_markdown welcome - .col-md-6.align-self-center + .col-12.col-lg-6.align-self-center -# Copiado y pegado de app/views/devise/registrations/new.haml - resource = resource_name = @invitade = form_for(resource, as: resource_name, diff --git a/app/views/devise/confirmations/new.haml b/app/views/devise/confirmations/new.haml index bc2f77bb..9e17fe0e 100644 --- a/app/views/devise/confirmations/new.haml +++ b/app/views/devise/confirmations/new.haml @@ -4,7 +4,7 @@ = render 'devise/shared/error_messages', resource: resource .row.align-items-center.justify-content-center.full-height - .col-md-4.align-self-center + .col-12.col-lg-5.align-self-center .sr-only %h2= t('.resend_confirmation_instructions') diff --git a/app/views/devise/invitations/edit.haml b/app/views/devise/invitations/edit.haml index ed4980ef..94050214 100644 --- a/app/views/devise/invitations/edit.haml +++ b/app/views/devise/invitations/edit.haml @@ -4,7 +4,7 @@ = render 'devise/shared/error_messages', resource: resource .row.align-items-center.justify-content-center.full-height - .col-md-5.align-self-center + .col-12.col-lg-5.align-self-center %h2= t 'devise.invitations.edit.header' = form_for(resource, as: resource_name, diff --git a/app/views/devise/invitations/new.haml b/app/views/devise/invitations/new.haml index 4ebb8fa7..b6e6f4c4 100644 --- a/app/views/devise/invitations/new.haml +++ b/app/views/devise/invitations/new.haml @@ -4,7 +4,7 @@ = render 'devise/shared/error_messages', resource: resource .row.align-items-center.justify-content-center.full-height - .col-md-5.align-self-center + .col-12.col-lg-5.align-self-center %h2= t 'devise.invitations.new.header' = form_for(resource, as: resource_name, diff --git a/app/views/devise/passwords/edit.haml b/app/views/devise/passwords/edit.haml index 3a8843c0..597bdde1 100644 --- a/app/views/devise/passwords/edit.haml +++ b/app/views/devise/passwords/edit.haml @@ -4,7 +4,7 @@ = render 'devise/shared/error_messages', resource: resource .row.align-items-center.justify-content-center.full-height - .col-md-5.align-self-center + .col-12.col-lg-5.align-self-center .sr-only %h2= t('.change_your_password') %p= t('.help') diff --git a/app/views/devise/passwords/new.haml b/app/views/devise/passwords/new.haml index 08dd8d2e..de422f57 100644 --- a/app/views/devise/passwords/new.haml +++ b/app/views/devise/passwords/new.haml @@ -4,7 +4,7 @@ = render 'devise/shared/error_messages', resource: resource .row.align-items-center.justify-content-center.full-height - .col-md-5.align-self-center + .col-12.col-lg-5.align-self-center .sr-only %h2= t('.forgot_your_password') %p= t('.help') diff --git a/app/views/devise/registrations/edit.haml b/app/views/devise/registrations/edit.haml index 92699ab8..f87921a7 100644 --- a/app/views/devise/registrations/edit.haml +++ b/app/views/devise/registrations/edit.haml @@ -6,7 +6,7 @@ = render 'devise/shared/error_messages', resource: resource .row.align-items-center.justify-content-center.full-height - .col-md-6.align-self-center + .col-12.col-lg-6.align-self-center %h2= t('.title') = form_for(resource, as: resource_name, diff --git a/app/views/devise/registrations/new.haml b/app/views/devise/registrations/new.haml index 26fc8e18..3fb22ca6 100644 --- a/app/views/devise/registrations/new.haml +++ b/app/views/devise/registrations/new.haml @@ -4,7 +4,7 @@ = render 'devise/shared/error_messages', resource: resource .row.align-items-center.justify-content-center.full-height - .col-md-6.align-self-center + .col-12.col-lg-6.align-self-center %h2= t('.sign_up') %p= t('.help') diff --git a/app/views/devise/sessions/new.haml b/app/views/devise/sessions/new.haml index c35f04db..9d6c7a02 100644 --- a/app/views/devise/sessions/new.haml +++ b/app/views/devise/sessions/new.haml @@ -2,7 +2,7 @@ - 'black-bg' .row.align-items-center.justify-content-center.full-height - .col-md-5.align-self-center + .col-12.col-lg-5.align-self-center .sr-only %h2= t('.sign_in') %p= t('.help') diff --git a/app/views/devise/unlocks/new.haml b/app/views/devise/unlocks/new.haml index 09468a52..4d9001ca 100644 --- a/app/views/devise/unlocks/new.haml +++ b/app/views/devise/unlocks/new.haml @@ -4,7 +4,7 @@ = render 'devise/shared/error_messages', resource: resource .row.align-items-center.justify-content-center.full-height - .col-md-5.align-self-center + .col-12.col-lg-5.align-self-center .sr-only %h2= t('.resend_unlock_instructions') %p= t('.help') diff --git a/app/views/posts/edit.haml b/app/views/posts/edit.haml index 6ec252fe..d03e08c7 100644 --- a/app/views/posts/edit.haml +++ b/app/views/posts/edit.haml @@ -1,3 +1,3 @@ .row.justify-content-center - .col-md-8 + .col-12.col-lg-8 = render 'posts/form', site: @site, post: @post diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index aad4be9e..db69871b 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -1,5 +1,5 @@ %main.row - %aside.menu.col-md-3 + %aside.menu.col-lg-3 .hyphens{ lang: @site.default_locale } %h1= @site.title %p.lead= @site.description diff --git a/app/views/posts/new.haml b/app/views/posts/new.haml index 6ec252fe..d03e08c7 100644 --- a/app/views/posts/new.haml +++ b/app/views/posts/new.haml @@ -1,3 +1,3 @@ .row.justify-content-center - .col-md-8 + .col-12.col-lg-8 = render 'posts/form', site: @site, post: @post diff --git a/app/views/posts/show.haml b/app/views/posts/show.haml index 068a6adf..8b68c62a 100644 --- a/app/views/posts/show.haml +++ b/app/views/posts/show.haml @@ -1,6 +1,6 @@ - dir = @site.data.dig(params[:locale], 'dir') .row.justify-content-center - .col-md-8 + .col-12.col-lg-8 %article.content.table-responsive-md = link_to t('posts.edit'), edit_site_post_path(@site, @post.id), diff --git a/app/views/sites/edit.haml b/app/views/sites/edit.haml index 4ae7308d..2013c6f6 100644 --- a/app/views/sites/edit.haml +++ b/app/views/sites/edit.haml @@ -1,5 +1,5 @@ .row.justify-content-center - .col-md-8 + .col-12.col-lg-8 %h1= t('.title', site: @site.name) = render 'form', site: @site, submit: t('.submit') diff --git a/app/views/sites/fetch.haml b/app/views/sites/fetch.haml index f5d049c8..51e0aa74 100644 --- a/app/views/sites/fetch.haml +++ b/app/views/sites/fetch.haml @@ -1,5 +1,5 @@ .row.justify-content-center - .col-md-8#pull + .col-12.col-lg-8#pull %h1= t('.title') %p.lead= sanitize_markdown t('.help.fetch'), tags: %w[em strong a] @@ -10,7 +10,7 @@ - @commits.each do |commit| .row.justify-content-center - .col-md-8{ id: commit.oid } + .col-12.col-lg-8{ id: commit.oid } %h1= commit.summary %p.lead= render 'layouts/time', time: commit.time @@ -25,6 +25,6 @@ - unless @commits.empty? .row.justify-content-center - .col-md-8 + .col-12.col-lg-8 = link_to t('.merge.request'), site_pull_path(@site), method: 'post', class: 'btn btn-lg' diff --git a/app/views/sites/index.haml b/app/views/sites/index.haml index b7231292..dfd33c6c 100644 --- a/app/views/sites/index.haml +++ b/app/views/sites/index.haml @@ -1,5 +1,5 @@ %main.row - %aside.col-md-3 + %aside.col-12.col-lg-3 %h1= t('.title') %p.lead= t('.help') - if policy(Site).new? diff --git a/app/views/sites/new.haml b/app/views/sites/new.haml index 68c17882..23ee8b40 100644 --- a/app/views/sites/new.haml +++ b/app/views/sites/new.haml @@ -1,5 +1,5 @@ .row.justify-content-center - .col-md-8 + .col-12.col-lg-8 %h1= t('.title') %p.lead= t('.help') diff --git a/app/views/stats/index.haml b/app/views/stats/index.haml index 88e86aa3..d3a11ffe 100644 --- a/app/views/stats/index.haml +++ b/app/views/stats/index.haml @@ -38,7 +38,7 @@ - if @normalized_urls.present? = line_chart site_stats_uris_path(urls: @normalized_urls, **@chart_params), **@chart_options - .row.mb-5.row-cols-1.row-cols-md-2 + .row.mb-5.row-cols-1.row-cols-lg-2 - @columns.each_pair do |column, values| - next if values.blank? .col.mb-5 diff --git a/app/views/usuaries/index.haml b/app/views/usuaries/index.haml index 124fb04b..edb9ad19 100644 --- a/app/views/usuaries/index.haml +++ b/app/views/usuaries/index.haml @@ -1,5 +1,5 @@ .row.justify-content-center - .col.col-md-8 + .col.col-lg-8 %h1= t('.title') -# Una tabla de usuaries y otra de invitades, con acciones diff --git a/app/views/usuaries/invite.haml b/app/views/usuaries/invite.haml index 26eb5039..4f4412ad 100644 --- a/app/views/usuaries/invite.haml +++ b/app/views/usuaries/invite.haml @@ -1,7 +1,7 @@ - invite_as = t("usuaries.invite_as.#{params[:invite_as]}") .row.justify-content-center - .col.col-md-8 + .col.col-lg-8 %h1= t('.title', invite_as: invite_as) = form_with url: site_usuaries_invite_path(@site), local: true do |f|