mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 03:31:42 +00:00
mejorar visor de sitios
This commit is contained in:
parent
2b33ea7edf
commit
11bb3273aa
4 changed files with 25 additions and 18 deletions
|
@ -1,13 +0,0 @@
|
|||
- if site.enqueued?
|
||||
%span.badge.badge-warning= t('sites.enqueued')
|
||||
- else
|
||||
= form_tag site_enqueue_path(site), method: :post, class: 'form-inline' do
|
||||
= button_tag type: 'submit', class: 'btn btn-success' do
|
||||
= fa_icon 'building'
|
||||
= t('sites.enqueue')
|
||||
|
||||
- if site.failed?
|
||||
%span.badge.badge-alert= t('sites.failed')
|
||||
- if site.build_log?
|
||||
= link_to t('sites.build_log'), site_build_log_path(site),
|
||||
class: 'badge badge-info'
|
|
@ -10,6 +10,22 @@
|
|||
%tbody
|
||||
- @sites.each do |site|
|
||||
%tr
|
||||
%td= link_to site.name, site_path(site)
|
||||
%td= link_to t('i18n.edit'), site_i18n_edit_path(site)
|
||||
%td= render 'sites/enqueue', site: site
|
||||
%td
|
||||
%h2= link_to site.name, site_path(site)
|
||||
%br
|
||||
.btn-group{role: 'group', 'aria-label': t('sites.actions')}
|
||||
= link_to t('sites.posts'), site_path(site), class: 'btn btn-success'
|
||||
= link_to t('i18n.edit'), site_i18n_edit_path(site), class: 'btn btn-info'
|
||||
- if site.enqueued?
|
||||
%button.btn.btn-secondary= t('sites.enqueued')
|
||||
- else
|
||||
= form_tag site_enqueue_path(site), method: :post, class: 'form-inline' do
|
||||
= button_tag type: 'submit', class: 'btn btn-success' do
|
||||
= fa_icon 'building'
|
||||
= t('sites.enqueue')
|
||||
|
||||
- if site.failed?
|
||||
%button.btn.btn-danger= t('sites.failed')
|
||||
- if site.build_log?
|
||||
= link_to t('sites.build_log'), site_build_log_path(site),
|
||||
class: 'btn btn-warning'
|
||||
|
|
|
@ -40,6 +40,8 @@ en:
|
|||
password: 'Password'
|
||||
submit: 'Log in'
|
||||
sites:
|
||||
actions: 'Actions'
|
||||
posts: 'View and edit posts'
|
||||
title: 'Sites'
|
||||
index: 'Sites'
|
||||
enqueued: 'Waiting for build'
|
||||
|
@ -50,7 +52,7 @@ en:
|
|||
powered_by: 'is developed by'
|
||||
i18n:
|
||||
index: 'Translations'
|
||||
edit: 'Edit translations'
|
||||
edit: 'Edit texts and translations'
|
||||
save: 'Save'
|
||||
change: 'Change'
|
||||
translating:
|
||||
|
|
|
@ -39,6 +39,8 @@ es:
|
|||
password: 'Contraseña'
|
||||
submit: 'Ingresar'
|
||||
sites:
|
||||
actions: 'Acciones'
|
||||
posts: 'Ver y editar artículos'
|
||||
title: 'Sitios'
|
||||
index: 'Sitios'
|
||||
enqueued: 'Esperando compilación'
|
||||
|
@ -49,7 +51,7 @@ es:
|
|||
powered_by: 'es desarrollada por'
|
||||
i18n:
|
||||
index: 'Traducciones'
|
||||
edit: 'Editar traducciones'
|
||||
edit: 'Editar textos y traducciones'
|
||||
save: 'Guardar'
|
||||
change: 'Cambiar'
|
||||
translating:
|
||||
|
|
Loading…
Reference in a new issue