traduccion de pull
This commit is contained in:
parent
5696e41d03
commit
f856cd78bb
13 changed files with 33 additions and 30 deletions
|
@ -1,5 +1,5 @@
|
|||
= render 'layouts/breadcrumb',
|
||||
crumbs: [link_to(t('sites.index'), sites_path),
|
||||
crumbs: [link_to(t('sites.index.title'), sites_path),
|
||||
link_to(@site.name, site_path(@site)),
|
||||
t('i18n.index'),
|
||||
t('i18n.edit')]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
= render 'layouts/breadcrumb',
|
||||
crumbs: [link_to(t('sites.index'), sites_path),
|
||||
crumbs: [link_to(t('sites.index.title'), sites_path),
|
||||
link_to(@site.name, site_posts_path(@site)),
|
||||
link_to(t('posts.index'), site_posts_path(@site)),
|
||||
link_to(@post.title.value, site_post_path(@site, @post.id)),
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
= render 'layouts/breadcrumb',
|
||||
crumbs: [link_to(t('sites.index'), sites_path),
|
||||
crumbs: [link_to(t('sites.index.title'), sites_path),
|
||||
@site.name,
|
||||
link_to(t('posts.index'),
|
||||
site_posts_path(@site)),
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
= render 'layouts/breadcrumb',
|
||||
crumbs: [link_to(t('sites.index'), sites_path),
|
||||
crumbs: [link_to(t('sites.index.title'), sites_path),
|
||||
@site.name,
|
||||
link_to(t('posts.index'),
|
||||
site_posts_path(@site)), t('posts.new')]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
= render 'layouts/breadcrumb',
|
||||
crumbs: [link_to(t('sites.index'), sites_path),
|
||||
crumbs: [link_to(t('sites.index.title'), sites_path),
|
||||
@site.name,
|
||||
link_to(t('posts.index'), site_posts_path(@site)),
|
||||
@post.title.value]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
= render 'layouts/breadcrumb',
|
||||
crumbs: [link_to(t('sites.index'), sites_path),
|
||||
crumbs: [link_to(t('sites.index.title'), sites_path),
|
||||
t('.title', site: @site.name)]
|
||||
.row
|
||||
.col
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
= render 'layouts/breadcrumb',
|
||||
crumbs: [link_to(t('sites.index'), sites_path), t('.title')]
|
||||
crumbs: [link_to(t('sites.index.title'), sites_path), t('.title')]
|
||||
|
||||
.row.justify-content-center
|
||||
.col-md-8#pull
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
= render 'layouts/breadcrumb', crumbs: [t('sites.index')]
|
||||
= render 'layouts/breadcrumb', crumbs: [t('sites.index.title')]
|
||||
|
||||
.row
|
||||
.col
|
||||
%h1
|
||||
= t('sites.title')
|
||||
= t('.title')
|
||||
- if policy(Site).new?
|
||||
= link_to t('sites.new.title'), new_site_path,
|
||||
class: 'btn'
|
||||
|
@ -57,25 +57,24 @@
|
|||
text: t('usuaries.index.title'),
|
||||
type: 'info',
|
||||
link: site_usuaries_path(site)
|
||||
- if policy(site).build?
|
||||
- if site.enqueued?
|
||||
= render 'layouts/btn_with_tooltip',
|
||||
tooltip: t('help.sites.enqueued'),
|
||||
text: t('sites.enqueued'),
|
||||
type: 'secondary',
|
||||
link: nil
|
||||
- else
|
||||
= form_tag site_enqueue_path(site),
|
||||
method: :post, class: 'form-inline' do
|
||||
= button_tag type: 'submit',
|
||||
class: 'btn btn-success',
|
||||
title: t('help.sites.enqueue'),
|
||||
data: { toggle: 'tooltip' } do
|
||||
= t('sites.enqueue')
|
||||
|
||||
- if policy(site).pull? && site.repository.needs_pull?
|
||||
= render 'layouts/btn_with_tooltip',
|
||||
tooltip: t('help.sites.pull'),
|
||||
text: t('.pull'),
|
||||
type: 'info',
|
||||
link: site_pull_path(site)
|
||||
- if policy(site).build?
|
||||
- if site.enqueued?
|
||||
= render 'layouts/btn_with_tooltip',
|
||||
tooltip: t('help.sites.enqueued'),
|
||||
text: t('.enqueued'),
|
||||
type: 'secondary',
|
||||
link: nil
|
||||
- else
|
||||
= form_tag site_enqueue_path(site),
|
||||
method: :post, class: 'form-inline' do
|
||||
= button_tag type: 'submit',
|
||||
class: 'btn no-border-radius',
|
||||
title: t('help.sites.enqueue'),
|
||||
data: { toggle: 'tooltip' } do
|
||||
= t('sites.enqueue')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
= render 'layouts/breadcrumb',
|
||||
crumbs: [link_to(t('sites.index'), sites_path), t('.title')]
|
||||
crumbs: [link_to(t('sites.index.title'), sites_path), t('.title')]
|
||||
|
||||
.row
|
||||
.col
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
= render 'layouts/breadcrumb',
|
||||
crumbs: [link_to(t('sites.index'), sites_path),
|
||||
crumbs: [link_to(t('sites.index.title'), sites_path),
|
||||
link_to(@site.name, site_path(@site)), t('.title')]
|
||||
|
||||
.row
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
- invite_as = t("usuaries.invite_as.#{params[:invite_as]}")
|
||||
|
||||
= render 'layouts/breadcrumb',
|
||||
crumbs: [link_to(t('sites.index'), sites_path),
|
||||
crumbs: [link_to(t('sites.index.title'), sites_path),
|
||||
@site.name,
|
||||
link_to(t('posts.index'), site_usuaries_path(@site)),
|
||||
t('.title', invite_as: invite_as)]
|
||||
|
|
|
@ -229,12 +229,14 @@ en:
|
|||
average: 'Average building time'
|
||||
maximum: 'Maximum building time'
|
||||
sites:
|
||||
index:
|
||||
title: 'Sites'
|
||||
pull: 'Upgrade'
|
||||
repository:
|
||||
config: 'Changes in config'
|
||||
actions: 'Actions'
|
||||
posts: 'View and edit posts'
|
||||
title: 'Sites'
|
||||
index: 'Sites'
|
||||
enqueued: 'Waiting for build'
|
||||
enqueue: 'Build'
|
||||
failed: 'Failed!'
|
||||
|
|
|
@ -231,12 +231,14 @@ es:
|
|||
average: 'Tiempo promedio de generación'
|
||||
maximum: 'Tiempo máximo de generación'
|
||||
sites:
|
||||
index:
|
||||
title: 'Sitios'
|
||||
pull: 'Actualizar'
|
||||
repository:
|
||||
config: 'Cambios en la configuración'
|
||||
actions: 'Acciones'
|
||||
posts: 'Ver y editar artículos'
|
||||
title: 'Sitios'
|
||||
index: 'Sitios'
|
||||
enqueued: 'Esperando compilación'
|
||||
enqueue: 'Compilar'
|
||||
failed: '¡Falló!'
|
||||
|
|
Loading…
Reference in a new issue