5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 21:26:21 +00:00

traduccion de pull

This commit is contained in:
f 2019-09-12 13:57:25 -03:00
parent 5696e41d03
commit f856cd78bb
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D
13 changed files with 33 additions and 30 deletions

View file

@ -1,5 +1,5 @@
= render 'layouts/breadcrumb', = 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)), link_to(@site.name, site_path(@site)),
t('i18n.index'), t('i18n.index'),
t('i18n.edit')] t('i18n.edit')]

View file

@ -1,5 +1,5 @@
= render 'layouts/breadcrumb', = 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(@site.name, site_posts_path(@site)),
link_to(t('posts.index'), site_posts_path(@site)), link_to(t('posts.index'), site_posts_path(@site)),
link_to(@post.title.value, site_post_path(@site, @post.id)), link_to(@post.title.value, site_post_path(@site, @post.id)),

View file

@ -1,5 +1,5 @@
= render 'layouts/breadcrumb', = render 'layouts/breadcrumb',
crumbs: [link_to(t('sites.index'), sites_path), crumbs: [link_to(t('sites.index.title'), sites_path),
@site.name, @site.name,
link_to(t('posts.index'), link_to(t('posts.index'),
site_posts_path(@site)), site_posts_path(@site)),

View file

@ -1,5 +1,5 @@
= render 'layouts/breadcrumb', = render 'layouts/breadcrumb',
crumbs: [link_to(t('sites.index'), sites_path), crumbs: [link_to(t('sites.index.title'), sites_path),
@site.name, @site.name,
link_to(t('posts.index'), link_to(t('posts.index'),
site_posts_path(@site)), t('posts.new')] site_posts_path(@site)), t('posts.new')]

View file

@ -1,5 +1,5 @@
= render 'layouts/breadcrumb', = render 'layouts/breadcrumb',
crumbs: [link_to(t('sites.index'), sites_path), crumbs: [link_to(t('sites.index.title'), sites_path),
@site.name, @site.name,
link_to(t('posts.index'), site_posts_path(@site)), link_to(t('posts.index'), site_posts_path(@site)),
@post.title.value] @post.title.value]

View file

@ -1,5 +1,5 @@
= render 'layouts/breadcrumb', = 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)] t('.title', site: @site.name)]
.row .row
.col .col

View file

@ -1,5 +1,5 @@
= render 'layouts/breadcrumb', = 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 .row.justify-content-center
.col-md-8#pull .col-md-8#pull

View file

@ -1,9 +1,9 @@
= render 'layouts/breadcrumb', crumbs: [t('sites.index')] = render 'layouts/breadcrumb', crumbs: [t('sites.index.title')]
.row .row
.col .col
%h1 %h1
= t('sites.title') = t('.title')
- if policy(Site).new? - if policy(Site).new?
= link_to t('sites.new.title'), new_site_path, = link_to t('sites.new.title'), new_site_path,
class: 'btn' class: 'btn'
@ -57,25 +57,24 @@
text: t('usuaries.index.title'), text: t('usuaries.index.title'),
type: 'info', type: 'info',
link: site_usuaries_path(site) 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? - if policy(site).pull? && site.repository.needs_pull?
= render 'layouts/btn_with_tooltip', = render 'layouts/btn_with_tooltip',
tooltip: t('help.sites.pull'), tooltip: t('help.sites.pull'),
text: t('.pull'), text: t('.pull'),
type: 'info', type: 'info',
link: site_pull_path(site) 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')

View file

@ -1,5 +1,5 @@
= render 'layouts/breadcrumb', = 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 .row
.col .col

View file

@ -1,5 +1,5 @@
= render 'layouts/breadcrumb', = 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')] link_to(@site.name, site_path(@site)), t('.title')]
.row .row

View file

@ -1,7 +1,7 @@
- invite_as = t("usuaries.invite_as.#{params[:invite_as]}") - invite_as = t("usuaries.invite_as.#{params[:invite_as]}")
= render 'layouts/breadcrumb', = render 'layouts/breadcrumb',
crumbs: [link_to(t('sites.index'), sites_path), crumbs: [link_to(t('sites.index.title'), sites_path),
@site.name, @site.name,
link_to(t('posts.index'), site_usuaries_path(@site)), link_to(t('posts.index'), site_usuaries_path(@site)),
t('.title', invite_as: invite_as)] t('.title', invite_as: invite_as)]

View file

@ -229,12 +229,14 @@ en:
average: 'Average building time' average: 'Average building time'
maximum: 'Maximum building time' maximum: 'Maximum building time'
sites: sites:
index:
title: 'Sites'
pull: 'Upgrade'
repository: repository:
config: 'Changes in config' config: 'Changes in config'
actions: 'Actions' actions: 'Actions'
posts: 'View and edit posts' posts: 'View and edit posts'
title: 'Sites' title: 'Sites'
index: 'Sites'
enqueued: 'Waiting for build' enqueued: 'Waiting for build'
enqueue: 'Build' enqueue: 'Build'
failed: 'Failed!' failed: 'Failed!'

View file

@ -231,12 +231,14 @@ es:
average: 'Tiempo promedio de generación' average: 'Tiempo promedio de generación'
maximum: 'Tiempo máximo de generación' maximum: 'Tiempo máximo de generación'
sites: sites:
index:
title: 'Sitios'
pull: 'Actualizar'
repository: repository:
config: 'Cambios en la configuración' config: 'Cambios en la configuración'
actions: 'Acciones' actions: 'Acciones'
posts: 'Ver y editar artículos' posts: 'Ver y editar artículos'
title: 'Sitios' title: 'Sitios'
index: 'Sitios'
enqueued: 'Esperando compilación' enqueued: 'Esperando compilación'
enqueue: 'Compilar' enqueue: 'Compilar'
failed: '¡Falló!' failed: '¡Falló!'