#369: updated UI of #show and #edit for Platform
This commit is contained in:
parent
ccdb9ce16e
commit
3a815832ac
|
@ -36,10 +36,9 @@ fieldset
|
||||||
data: { confirm: t("layout.platforms.confirm_change_visibility") },
|
data: { confirm: t("layout.platforms.confirm_change_visibility") },
|
||||||
class: 'btn btn-xs btn-warning'
|
class: 'btn btn-xs btn-warning'
|
||||||
|
|
||||||
|
- unless @platform.personal?
|
||||||
h3
|
h3
|
||||||
= t('layout.platform_arch_settings.extra_settings')
|
= t('layout.platform_arch_settings.extra_settings')
|
||||||
|
|
||||||
|
|
||||||
table.table
|
table.table
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
|
|
|
@ -8,46 +8,65 @@
|
||||||
= t('layout.platforms.about')
|
= t('layout.platforms.about')
|
||||||
|
|
|
|
||||||
= link_to @platform.name, platform_contents_path(@platform)
|
= link_to @platform.name, platform_contents_path(@platform)
|
||||||
dl.dl-horizontal
|
|
||||||
dt= t('activerecord.attributes.platform.description')
|
.row
|
||||||
dd= @platform.description
|
.col-md-4
|
||||||
|
b= t('activerecord.attributes.platform.description')
|
||||||
|
.col-md-8= @platform.description
|
||||||
|
|
||||||
- if @platform.parent
|
- if @platform.parent
|
||||||
dt= t('activerecord.attributes.platform.parent')
|
.row
|
||||||
dd= link_to @platform.parent.description, platform_path(@platform.parent)
|
.col-md-4
|
||||||
|
b= t('activerecord.attributes.platform.parent')
|
||||||
|
.col-md-8
|
||||||
|
= link_to @platform.parent.description, platform_path(@platform.parent)
|
||||||
|
|
||||||
dt= t('layout.platforms.owner')
|
.row
|
||||||
dd= link_to @platform.owner.try(:name), url_for(@platform.owner)
|
.col-md-4
|
||||||
|
b= t('layout.platforms.owner')
|
||||||
|
.col-md-8= link_to @platform.owner.try(:name), url_for(@platform.owner)
|
||||||
|
|
||||||
dt= t('layout.platforms.visibility')
|
.row
|
||||||
dd= t("layout.visibilities.#{@platform.visibility}")
|
.col-md-4
|
||||||
|
b= t('layout.platforms.visibility')
|
||||||
|
.col-md-8= t("layout.visibilities.#{@platform.visibility}")
|
||||||
|
|
||||||
dt= t('layout.platforms.platform_type')
|
.row
|
||||||
dd= @platform.platform_type
|
.col-md-4
|
||||||
|
b= t('layout.platforms.platform_type')
|
||||||
|
.col-md-8= @platform.platform_type
|
||||||
|
|
||||||
dt= t('layout.platforms.distrib_type')
|
.row
|
||||||
dd= @platform.distrib_type
|
.col-md-4
|
||||||
|
b= t('layout.platforms.distrib_type')
|
||||||
|
.col-md-8= @platform.distrib_type
|
||||||
|
|
||||||
- if can? :clone, @platform
|
- if can? :clone, @platform
|
||||||
dt
|
.row
|
||||||
dd
|
.col-md-4
|
||||||
|
.col-md-8
|
||||||
a.btn.btn-primary href=clone_platform_path(@platform)
|
a.btn.btn-primary href=clone_platform_path(@platform)
|
||||||
= t('layout.platforms.clone')
|
= t('layout.platforms.clone')
|
||||||
|
|
||||||
- if @platform.platform_type == 'personal' and @platform.visibility == 'open'
|
- if @platform.platform_type == 'personal' and @platform.visibility == 'open'
|
||||||
.col-md-6 ng-controller='PlatformSysReposController' ng-init="init(#{@platform.id})"
|
.col-md-6 ng-controller='PlatformSysReposController' ng-init="init(#{@platform.id})"
|
||||||
h3= t('layout.platforms.sys_repos_header')
|
h3= t('layout.platforms.sys_repos_header')
|
||||||
dl.dl-horizontal
|
|
||||||
dt= t('layout.platforms.target_platform')
|
.row
|
||||||
dd
|
.col-md-4
|
||||||
|
b= t('layout.platforms.target_platform')
|
||||||
|
.col-md-8
|
||||||
select ng-model='platform' ng-change='updateCommand()'
|
select ng-model='platform' ng-change='updateCommand()'
|
||||||
option ng-repeat='platform in platforms' ng-value='platform'
|
option ng-repeat='platform in platforms' ng-value='platform'
|
||||||
| {{ platform }}
|
| {{ platform }}
|
||||||
|
|
||||||
dt= t('layout.platforms.target_architecture')
|
.row
|
||||||
dd
|
.col-md-4
|
||||||
|
b= t('layout.platforms.target_architecture')
|
||||||
|
.col-md-8
|
||||||
select ng-model='arch' ng-change='updateCommand()'
|
select ng-model='arch' ng-change='updateCommand()'
|
||||||
option ng-repeat='arch in arches' ng-value='arch'
|
option ng-repeat='arch in arches' ng-value='arch'
|
||||||
| {{ arch }}
|
| {{ arch }}
|
||||||
|
.row
|
||||||
br
|
br
|
||||||
textarea.form-control readonly='readonly' ng-model='command' rows=3 ng-click='selectAll($event)'
|
textarea.form-control readonly='readonly' ng-model='command' rows=3 ng-click='selectAll($event)'
|
||||||
|
|
Loading…
Reference in New Issue