[#369] more compact interface
This commit is contained in:
parent
2e20b9942d
commit
cc1b70ffac
|
@ -231,3 +231,11 @@ textarea.resize-vertical
|
||||||
left: 20px
|
left: 20px
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
|
nav.navbar
|
||||||
|
form#clone_url
|
||||||
|
width: 35%
|
||||||
|
.form-group
|
||||||
|
display: inline
|
||||||
|
input
|
||||||
|
width: 100%
|
||||||
|
|
|
@ -6,9 +6,12 @@
|
||||||
*= require_tree ./views
|
*= require_tree ./views
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$grid-gutter-width: 16px;
|
||||||
|
//$line-height-base: 1.1428571428;
|
||||||
|
|
||||||
$navbar-height: 37px;
|
$navbar-height: 37px;
|
||||||
$navbar-border-radius: 0px;
|
$navbar-border-radius: 0px;
|
||||||
$nav-link-padding: 10px 8px;
|
$nav-link-padding: 5px 8px;
|
||||||
|
|
||||||
$top-menu-height: 52px;
|
$top-menu-height: 52px;
|
||||||
$top-menu-padding-vertical: (($top-menu-height - 20) / 2);
|
$top-menu-padding-vertical: (($top-menu-height - 20) / 2);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.row.offset10.boffset20
|
.row.offset10.boffset10
|
||||||
.col-xs-8
|
.col-xs-8
|
||||||
= text_field_tag 'q', params[:q], placeholder: t('layout.advisories.search'),
|
= text_field_tag 'q', params[:q], placeholder: t('layout.advisories.search'),
|
||||||
class: 'form-control text-muted', 'ng-model' => 'q', 'ng-change' => 'goToPage(1)'
|
class: 'form-control text-muted', 'ng-model' => 'q', 'ng-change' => 'goToPage(1)'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
tab heading = "{{activity_tab.title | i18n}}" active = "activity_tab.active" select = "getContent('activity')"
|
tab heading = "{{activity_tab.title | i18n}}" active = "activity_tab.active" select = "getContent('activity')"
|
||||||
.row
|
.row
|
||||||
.col-md-3.offset20== render 'sidebar'
|
.col-md-3.offset10== render 'sidebar'
|
||||||
.col-md-9.offset20
|
.col-md-9.offset10
|
||||||
h3
|
h3
|
||||||
= t 'layout.activity_feed.header'
|
= t 'layout.activity_feed.header'
|
||||||
= link_to image_tag('rss.ico', width: '15px', height: '15px', class: 'atom_icon'),
|
= link_to image_tag('rss.ico', width: '15px', height: '15px', class: 'atom_icon'),
|
||||||
|
@ -10,7 +10,7 @@ tab heading = "{{activity_tab.title | i18n}}" active = "activity_tab.active" sel
|
||||||
- (collection = t 'feed_menu').each do |base, title|
|
- (collection = t 'feed_menu').each do |base, title|
|
||||||
tab heading = title active = (@filter == base) select = "changeActivityFilter('#{base}')"
|
tab heading = title active = (@filter == base) select = "changeActivityFilter('#{base}')"
|
||||||
/ The time line
|
/ The time line
|
||||||
.row.offset20
|
.row.offset10
|
||||||
.col-md-12.col-sm-12
|
.col-md-12.col-sm-12
|
||||||
ul.timeline
|
ul.timeline
|
||||||
/ timeline time label
|
/ timeline time label
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
active = "#{kind}_tab.active"
|
active = "#{kind}_tab.active"
|
||||||
select = "getContent('#{kind}')" ]
|
select = "getContent('#{kind}')" ]
|
||||||
.row
|
.row
|
||||||
.col-md-3.offset20
|
.col-md-3.offset10
|
||||||
ul.nav.nav-pills.nav-stacked
|
ul.nav.nav-pills.nav-stacked
|
||||||
- %w(all assigned created).each do |kind_filter|
|
- %w(all assigned created).each do |kind_filter|
|
||||||
li ng-class = "{ active: #{kind}_tab.filter.#{kind_filter} }"
|
li ng-class = "{ active: #{kind}_tab.filter.#{kind_filter} }"
|
||||||
a ng-click = "setIssuesFilter('#{kind}', '#{kind_filter}')"
|
a ng-click = "setIssuesFilter('#{kind}', '#{kind_filter}')"
|
||||||
span.badge.pull-right= "{{ #{kind}_tab.filter.#{kind_filter}_count }}"
|
span.badge.pull-right= "{{ #{kind}_tab.filter.#{kind_filter}_count }}"
|
||||||
= "{{'#{kind}.filter.#{kind_filter}' | i18n}}"
|
= "{{'#{kind}.filter.#{kind_filter}' | i18n}}"
|
||||||
.col-md-9.offset20
|
.col-md-9.offset10
|
||||||
tabset.boffset10
|
tabset.boffset10
|
||||||
- %w(open closed).each do |status|
|
- %w(open closed).each do |status|
|
||||||
- count_issues = "({{#{kind}_tab.filter.#{status}_count}})"
|
- count_issues = "({{#{kind}_tab.filter.#{status}_count}})"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
-set_meta_tags title: nil
|
-set_meta_tags title: nil
|
||||||
.row
|
.row
|
||||||
.col-xs-12.col-md-10.col-md-offset-1 ng-controller = 'ActivityCtrl' ng-init = "init('#{action_name}')"
|
.col-xs-12.col-md-10.col-md-offset-1 ng-controller = 'ActivityCtrl' ng-init = "init('#{action_name}')"
|
||||||
tabset.offset20 ng-cloak = true
|
tabset.offset10 ng-cloak = true
|
||||||
== render 'activity_tab'
|
== render 'activity_tab'
|
||||||
== render 'tracker_and_pulls_tabs'
|
== render 'tracker_and_pulls_tabs'
|
||||||
|
|
|
@ -25,7 +25,7 @@ html
|
||||||
== render 'layouts/noscript'
|
== render 'layouts/noscript'
|
||||||
== render "layouts/flashes"
|
== render "layouts/flashes"
|
||||||
|
|
||||||
article.container-fluid.offset20
|
article.container-fluid.offset10
|
||||||
== yield
|
== yield
|
||||||
== render 'layouts/menu/new_bottom'
|
== render 'layouts/menu/new_bottom'
|
||||||
== javascript_include_tag 'new_application', cache: 'application'
|
== javascript_include_tag 'new_application', cache: 'application'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
%footer.offset20
|
%footer.offset10
|
||||||
%ul
|
%ul
|
||||||
%li= t('bottom_menu.copyright', year: Date.today.year)
|
%li= t('bottom_menu.copyright', year: Date.today.year)
|
||||||
%li ·
|
%li ·
|
||||||
|
|
|
@ -12,7 +12,7 @@ html
|
||||||
== render 'layouts/noscript'
|
== render 'layouts/noscript'
|
||||||
== render "layouts/flashes"
|
== render "layouts/flashes"
|
||||||
|
|
||||||
article.container-fluid.offset20
|
article.container-fluid.offset10
|
||||||
.row
|
.row
|
||||||
.col-md-6.col-md-offset-3
|
.col-md-6.col-md-offset-3
|
||||||
.panel.panel-primary
|
.panel.panel-primary
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
.row
|
.row
|
||||||
= image_tag "tour-top#{I18n.locale == :en ? '-eng' : ''}.png", alt: 'ABF', class: 'img-responsive center-block img-rounded'
|
= image_tag "tour-top#{I18n.locale == :en ? '-eng' : ''}.png", alt: 'ABF', class: 'img-responsive center-block img-rounded'
|
||||||
|
|
||||||
.row.offset20
|
.row.offset10
|
||||||
.col-md-6
|
.col-md-6
|
||||||
a.btn-link data-toggle="modal" data-target="#controlModal"
|
a.btn-link data-toggle="modal" data-target="#controlModal"
|
||||||
= image_tag 'tour/control.png', class: 'img-responsive center-block img-rounded'
|
= image_tag 'tour/control.png', class: 'img-responsive center-block img-rounded'
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
.row
|
.row
|
||||||
= image_tag "tour-top#{I18n.locale == :en ? '-eng' : ''}.png", alt: 'ABF', class: 'img-responsive center-block img-rounded'
|
= image_tag "tour-top#{I18n.locale == :en ? '-eng' : ''}.png", alt: 'ABF', class: 'img-responsive center-block img-rounded'
|
||||||
|
|
||||||
.row.offset20
|
.row.offset10
|
||||||
= render 'pages/tour/submenu'
|
= render 'pages/tour/submenu'
|
||||||
.offset20
|
.offset10
|
||||||
|
|
||||||
- @entries.each_with_index do |el, ind|
|
- @entries.each_with_index do |el, ind|
|
||||||
= render partial: 'pages/tour/entry', locals: {entry: el, is_left: ind.odd?}
|
= render partial: 'pages/tour/entry', locals: {entry: el, is_left: ind.odd?}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
.row ng-controller='PlatformsCtrl'
|
.row ng-controller='PlatformsCtrl'
|
||||||
.col-md-6.col-md-offset-3 ng-cloak=true
|
.col-md-6.col-md-offset-3 ng-cloak=true
|
||||||
= link_to t('layout.platforms.new'), new_platform_path, class: 'btn btn-primary' if can? :create, Platform
|
= link_to t('layout.platforms.new'), new_platform_path, class: 'btn btn-primary' if can? :create, Platform
|
||||||
table.table.table-hover.offset20
|
table.table.table-hover.offset10
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
th
|
th
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
.container
|
.container
|
||||||
|
|
||||||
.row.offset20
|
.row.offset10
|
||||||
= render 'filter'
|
= render 'filter'
|
||||||
.row
|
.row
|
||||||
table.table.table-striped
|
table.table.table-striped
|
||||||
|
|
|
@ -99,7 +99,7 @@
|
||||||
options_for_select(product_build_list_delete_options),
|
options_for_select(product_build_list_delete_options),
|
||||||
{ ng_model: "pbl.not_delete", ng_change: 'updateStatus()'}
|
{ ng_model: "pbl.not_delete", ng_change: 'updateStatus()'}
|
||||||
|
|
||||||
.row.alert.alert-danger.offset20 ng-hide='pbl.not_delete'
|
.row.alert.alert-danger.offset10 ng-hide='pbl.not_delete'
|
||||||
- days = pbl.autostarted? ? ProductBuildList::LIVE_TIME : ProductBuildList::MAX_LIVE_TIME
|
- days = pbl.autostarted? ? ProductBuildList::LIVE_TIME : ProductBuildList::MAX_LIVE_TIME
|
||||||
- days = (pbl.created_at.to_date - days.ago.to_date).to_i
|
- days = (pbl.created_at.to_date - days.ago.to_date).to_i
|
||||||
- if days > 1
|
- if days > 1
|
||||||
|
@ -126,7 +126,7 @@
|
||||||
ng-show = 'pbl.can_destroy' ]
|
ng-show = 'pbl.can_destroy' ]
|
||||||
= t('layout.product_build_lists.delete')
|
= t('layout.product_build_lists.delete')
|
||||||
|
|
||||||
.row.offset20 ng-show="pbl.status == #{ProductBuildList::BUILD_STARTED}"
|
.row.offset10 ng-show="pbl.status == #{ProductBuildList::BUILD_STARTED}"
|
||||||
= render 'shared/log', { build_started: true, get_log_path: log_platform_product_product_build_list_path(pbl.product.platform, pbl.product, pbl) }
|
= render 'shared/log', { build_started: true, get_log_path: log_platform_product_product_build_list_path(pbl.product.platform, pbl.product, pbl) }
|
||||||
|
|
||||||
.row
|
.row
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
.col-md-2
|
.col-md-2
|
||||||
= f.button :submit, label, data: { confirm: t('layout.confirm') }, class: 'btn-warning'
|
= f.button :submit, label, data: { confirm: t('layout.confirm') }, class: 'btn-warning'
|
||||||
|
|
||||||
.row.offset20
|
.row.offset10
|
||||||
= simple_form_for @repository, url: regenerate_metadata_platform_repository_path(@platform, @repository), html: { method: :put } do |f|
|
= simple_form_for @repository, url: regenerate_metadata_platform_repository_path(@platform, @repository), html: { method: :put } do |f|
|
||||||
.col-md-6
|
.col-md-6
|
||||||
= t('layout.repositories.regenerate_metadata')
|
= t('layout.repositories.regenerate_metadata')
|
||||||
|
|
|
@ -1,78 +0,0 @@
|
||||||
- act = action_name.to_sym; contr = controller_name.to_sym; treeish = project.default_head(params[:treeish]); branch = @branch.try(:name) || project.default_head
|
|
||||||
-http_url = git_repo_url(project.name_with_owner)
|
|
||||||
-ssh_url = git_ssh_repo_url(project.name_with_owner)
|
|
||||||
|
|
||||||
%div{ role: 'navigation', 'ng-controller' => 'ProjectRepoBlockController', 'ng-cloak' => true,
|
|
||||||
'ng-init' => "init('#{ssh_url}', #{project.repo.branches.count})" }
|
|
||||||
%nav.navbar.navbar-default
|
|
||||||
.container-fluid
|
|
||||||
/ Brand and toggle get grouped for better mobile display
|
|
||||||
.navbar-header
|
|
||||||
%button.navbar-toggle{ 'data-target' => '#repo-block-navbar-collapse', 'data-toggle' => 'collapse', type: 'button' }
|
|
||||||
%span.sr-only Toggle navigation
|
|
||||||
%span.icon-bar
|
|
||||||
%span.icon-bar
|
|
||||||
%span.icon-bar
|
|
||||||
/ Collect the nav links, forms, and other content for toggling
|
|
||||||
#repo-block-navbar-collapse.collapse.navbar-collapse
|
|
||||||
%ul.nav.navbar-nav
|
|
||||||
%li.dropdown
|
|
||||||
%a.dropdown{ href: '#', 'data-toggle' => 'dropdown' }
|
|
||||||
= fa_icon 'file-archive-o', class: 'fa-lg'
|
|
||||||
%span.caret
|
|
||||||
%ul.dropdown-menu{ role: 'menu' }
|
|
||||||
- file_name = "#{@project.name}-#{treeish}"
|
|
||||||
%li= link_to 'tar.gz', archive_path(project, file_name, 'tar.gz')
|
|
||||||
%li= link_to 'zip', archive_path(project, file_name, 'zip')
|
|
||||||
.navbar-left
|
|
||||||
%button.btn.navbar-btn.btn-default{ type: 'button', 'ng-click' => "clone_url = '#{http_url}'",
|
|
||||||
'ng-model' => "clone_url_protocol", 'btn-radio' => "'http'",
|
|
||||||
'ng-class' => '{"btn-info": clone_url_protocol == "http"}' } HTTP
|
|
||||||
%button.btn.navbar-btn.btn-default{ type: 'button', 'ng-click' => "clone_url = '#{ssh_url}'",
|
|
||||||
'ng-model' => "clone_url_protocol", 'btn-radio' => "'ssh'",
|
|
||||||
'ng-class' => '{"btn-info": clone_url_protocol == "ssh"}'} SSH
|
|
||||||
#git-help.navbar-text.navbar-left
|
|
||||||
%a.navbar-link{ 'ng-click' => 'is_collapsed_git_help = !is_collapsed_git_help' }
|
|
||||||
= fa_icon 'question', class: 'fa-lg'
|
|
||||||
|
|
||||||
%form#clone_url.navbar-form.navbar-left
|
|
||||||
.form-group
|
|
||||||
%input#clone-url.form-control{ readonly: 'readonly', spellcheck: false,
|
|
||||||
type: 'text', 'ng-model' => 'clone_url' }
|
|
||||||
.navbar-text.navbar-left{ title: t('layout.projects.git_help.question_title') }
|
|
||||||
%a#copy_to_clipboard.navbar-link{ 'data-clipboard-target' => 'clone-url' }
|
|
||||||
%i.fa.fa-clipboard.fa-lg
|
|
||||||
|
|
||||||
.navbar-text.navbar-left
|
|
||||||
= can?(:write, project) ? t("layout.read_write_access") : t("layout.read_access")
|
|
||||||
|
|
||||||
.navbar-right= render 'branch_select', project: project if act != :tags
|
|
||||||
|
|
||||||
%div{ collapse: "is_collapsed_git_help" }
|
|
||||||
.container
|
|
||||||
%p= t("layout.projects.git_help.cloning") + ":"
|
|
||||||
%p
|
|
||||||
- if current_user
|
|
||||||
%p{ 'ng-hide' => 'clone_url_protocol == "ssh"' }~ "git clone #{http_url} #{project.name}"
|
|
||||||
%p{ 'ng-hide' => 'clone_url_protocol == "http"' }~ "git clone #{ssh_url} #{project.name}"
|
|
||||||
%p~ "cd #{project.name}"
|
|
||||||
%p
|
|
||||||
%p= t("layout.projects.git_help.remote") + ":"
|
|
||||||
%p
|
|
||||||
- if current_user
|
|
||||||
%p{ 'ng-hide' => 'clone_url_protocol == "ssh"' }~ "git remote add #{project.name} #{http_url}"
|
|
||||||
%p{ 'ng-hide' => 'clone_url_protocol == "http"' }~ "git remote add #{project.name} #{ssh_url}"
|
|
||||||
%p~ "git fetch #{project.name}"
|
|
||||||
%p~ "git checkout -b my-local-tracking-branch #{project.name}/master_or_other_branch"
|
|
||||||
|
|
||||||
.container
|
|
||||||
.row
|
|
||||||
%ul.nav.nav-tabs{ role: 'tablist' }
|
|
||||||
%li{class: ('active' if act == :show && contr == :trees )}
|
|
||||||
= link_to t('project_menu.files'), tree_path(project, treeish)
|
|
||||||
%li{class: ('active' if act == :index && contr == :commits )}
|
|
||||||
= link_to t('project_menu.commits'), commits_path(project, treeish)
|
|
||||||
%li{class: ('active' if act == :branches && contr == :trees )}
|
|
||||||
= link_to t('project_menu.branches', count: '{{singleton.project.branches_count}}'), branch_path(project, branch)
|
|
||||||
%li.tags{class: ('active' if act == :tags && contr == :trees )}
|
|
||||||
= link_to t('project_menu.tags', count: project.repo.tags.count), tags_path(project)
|
|
|
@ -0,0 +1,78 @@
|
||||||
|
- act = action_name.to_sym; contr = controller_name.to_sym; treeish = project.default_head(params[:treeish]); branch = @branch.try(:name) || project.default_head
|
||||||
|
-http_url = git_repo_url(project.name_with_owner)
|
||||||
|
-ssh_url = git_ssh_repo_url(project.name_with_owner)
|
||||||
|
|
||||||
|
div[ role = 'navigation' ng-controller = 'ProjectRepoBlockController' ng-cloak = true
|
||||||
|
ng-init = "init('#{ssh_url}', #{project.repo.branches.count})" ]
|
||||||
|
nav.navbar.navbar-default
|
||||||
|
.container-fluid
|
||||||
|
/ Brand and toggle get grouped for better mobile display
|
||||||
|
.navbar-header
|
||||||
|
button.navbar-toggle[ data-target = '#repo-block-navbar-collapse' data-toggle = 'collapse' type = 'button' ]
|
||||||
|
span.sr-only Toggle navigation
|
||||||
|
span.icon-bar
|
||||||
|
span.icon-bar
|
||||||
|
span.icon-bar
|
||||||
|
/ Collect the nav links, forms, and other content for toggling
|
||||||
|
#repo-block-navbar-collapse.collapse.navbar-collapse
|
||||||
|
ul.nav.navbar-nav
|
||||||
|
li.dropdown
|
||||||
|
a.dropdown href = '#' data-toggle = 'dropdown'
|
||||||
|
= fa_icon 'file-archive-o', class: 'fa-lg'
|
||||||
|
span.caret
|
||||||
|
ul.dropdown-menu role = 'menu'
|
||||||
|
- file_name = "#{@project.name}-#{treeish}"
|
||||||
|
li= link_to 'tar.gz', archive_path(project, file_name, 'tar.gz')
|
||||||
|
li= link_to 'zip', archive_path(project, file_name, 'zip')
|
||||||
|
.navbar-left
|
||||||
|
button.btn.navbar-btn.btn-default[ type = 'button' ng-click = "clone_url = '#{http_url}'"
|
||||||
|
ng-model = "clone_url_protocol" btn-radio = "'http'"
|
||||||
|
ng-class = '{"btn-info": clone_url_protocol == "http"}' ] HTTP
|
||||||
|
button.btn.navbar-btn.btn-default[ type = 'button' ng-click = "clone_url = '#{ssh_url}'"
|
||||||
|
ng-model = "clone_url_protocol" btn-radio = "'ssh'"
|
||||||
|
ng-class = '{"btn-info": clone_url_protocol == "ssh"}'] SSH
|
||||||
|
#git-help.navbar-text.navbar-left
|
||||||
|
a.navbar-link ng-click = 'is_collapsed_git_help = !is_collapsed_git_help'
|
||||||
|
= fa_icon 'question', class: 'fa-lg'
|
||||||
|
|
||||||
|
form#clone_url.navbar-form.navbar-left
|
||||||
|
.form-group
|
||||||
|
input#clone-url.form-control[ readonly = 'readonly' spellcheck = false
|
||||||
|
type = 'text' ng-model = 'clone_url' ]
|
||||||
|
.navbar-text.navbar-left title = t('layout.projects.git_help.question_title')
|
||||||
|
a#copy_to_clipboard.navbar-link data-clipboard-target = 'clone-url'
|
||||||
|
i.fa.fa-clipboard.fa-lg
|
||||||
|
|
||||||
|
.navbar-text.navbar-left
|
||||||
|
= can?(:write, project) ? t("layout.read_write_access") : t("layout.read_access")
|
||||||
|
|
||||||
|
.navbar-right== render 'branch_select', project: project if act != :tags
|
||||||
|
|
||||||
|
div collapse = "is_collapsed_git_help"
|
||||||
|
.container
|
||||||
|
p= t("layout.projects.git_help.cloning") + ":"
|
||||||
|
p
|
||||||
|
- if current_user
|
||||||
|
p[ ng-hide = 'clone_url_protocol == "ssh"']~ "git clone #{http_url} #{project.name}"
|
||||||
|
p[ ng-hide = 'clone_url_protocol == "http"']~ "git clone #{ssh_url} #{project.name}"
|
||||||
|
p~ "cd #{project.name}"
|
||||||
|
p
|
||||||
|
p= t("layout.projects.git_help.remote") + ":"
|
||||||
|
p
|
||||||
|
- if current_user
|
||||||
|
p[ ng-hide = 'clone_url_protocol == "ssh"' ]~ "git remote add #{project.name} #{http_url}"
|
||||||
|
p[ ng-hide = 'clone_url_protocol == "http"' ]~ "git remote add #{project.name} #{ssh_url}"
|
||||||
|
p~ "git fetch #{project.name}"
|
||||||
|
p~ "git checkout -b my-local-tracking-branch #{project.name}/master_or_other_branch"
|
||||||
|
|
||||||
|
.container
|
||||||
|
.row
|
||||||
|
ul.nav.nav-tabs role = 'tablist'
|
||||||
|
li class = ('active' if act == :show && contr == :trees )
|
||||||
|
= link_to t('project_menu.files'), tree_path(project, treeish)
|
||||||
|
li class = ('active' if act == :index && contr == :commits )
|
||||||
|
= link_to t('project_menu.commits'), commits_path(project, treeish)
|
||||||
|
li class = ('active' if act == :branches && contr == :trees )
|
||||||
|
= link_to t('project_menu.branches', count: '{{singleton.project.branches_count}}'), branch_path(project, branch)
|
||||||
|
li.tags class = ('active' if act == :tags && contr == :trees )
|
||||||
|
= link_to t('project_menu.tags', count: project.repo.tags.count), tags_path(project)
|
|
@ -1,7 +1,7 @@
|
||||||
- act = action_name.to_sym
|
- act = action_name.to_sym
|
||||||
- contr = controller_name.to_sym
|
- contr = controller_name.to_sym
|
||||||
|
|
||||||
ul.nav.nav-tabs.nav-justified.boffset20[ role = 'tablist' ]
|
ul.nav.nav-tabs.nav-justified.boffset10[ role = 'tablist' ]
|
||||||
- if can? :edit, @project
|
- if can? :edit, @project
|
||||||
li[ class = "#{(act == :edit && contr == :projects) ? 'active' : ''}" ]
|
li[ class = "#{(act == :edit && contr == :projects) ? 'active' : ''}" ]
|
||||||
= link_to t("layout.projects.edit"), edit_project_path(@project)
|
= link_to t("layout.projects.edit"), edit_project_path(@project)
|
||||||
|
|
|
@ -63,11 +63,11 @@
|
||||||
%h4= t 'layout.build_lists.id_search'
|
%h4= t 'layout.build_lists.id_search'
|
||||||
%input#filter_id.form-control{ name: 'filter{id}', size: '30', type: 'text', value: '{{params.filter.id}}' }
|
%input#filter_id.form-control{ name: 'filter{id}', size: '30', type: 'text', value: '{{params.filter.id}}' }
|
||||||
.clearfix
|
.clearfix
|
||||||
.col-md-4.col-sm-6.offset20
|
.col-md-4.col-sm-6.offset10
|
||||||
= label_tag :autoreload do
|
= label_tag :autoreload do
|
||||||
= check_box_tag :autoreload, true, true
|
= check_box_tag :autoreload, true, true
|
||||||
= t 'layout.autoreload_page'
|
= t 'layout.autoreload_page'
|
||||||
.col-md-4.col-sm-6.col-md-offset-4.offset20
|
.col-md-4.col-sm-6.col-md-offset-4.offset10
|
||||||
.btn-group.btn-group-justified
|
.btn-group.btn-group-justified
|
||||||
.btn-group{ 'ng-show' => 'isRequest' }
|
.btn-group{ 'ng-show' => 'isRequest' }
|
||||||
%button.btn.btn-default{ type: 'button', disabled: true }
|
%button.btn.btn-default{ type: 'button', disabled: true }
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
.col-xs-12.col-md-10.col-md-offset-1{ 'ng-controller' => 'BuildListsController',
|
.col-xs-12.col-md-10.col-md-offset-1{ 'ng-controller' => 'BuildListsController',
|
||||||
'ng-init' => 'init()', 'ng-cloak' => true }
|
'ng-init' => 'init()', 'ng-cloak' => true }
|
||||||
|
|
||||||
.row.offset20
|
.row.offset10
|
||||||
= render 'filter'
|
= render 'filter'
|
||||||
.row
|
.row
|
||||||
%table.table.table-condensed
|
%table.table.table-condensed
|
||||||
|
|
|
@ -5,7 +5,7 @@ h3= t('activerecord.attributes.build_list.extra_params.label')
|
||||||
placeholder: t("activerecord.attributes.build_list.extra_params.#{field}"),
|
placeholder: t("activerecord.attributes.build_list.extra_params.#{field}"),
|
||||||
class: 'form-control'
|
class: 'form-control'
|
||||||
|
|
||||||
h3.offset20= t("activerecord.attributes.build_list.preferences")
|
h3.offset10= t("activerecord.attributes.build_list.preferences")
|
||||||
- selected = params[:build_list].try(:[], :auto_publish_status) ? {selected: params[:build_list][:auto_publish_status]} : {}
|
- selected = params[:build_list].try(:[], :auto_publish_status) ? {selected: params[:build_list][:auto_publish_status]} : {}
|
||||||
.form-group
|
.form-group
|
||||||
= f.label :auto_publish_status
|
= f.label :auto_publish_status
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
%h4= t 'activerecord.attributes.build_list.build_for_platform'
|
%h4= t 'activerecord.attributes.build_list.build_for_platform'
|
||||||
.boffset20{ 'ng-repeat' => 'platform in newBuildCtrl.platforms',
|
.boffset10{ 'ng-repeat' => 'platform in newBuildCtrl.platforms',
|
||||||
'ng-hide' => 'newBuildCtrl.hidePlatform(platform)' }
|
'ng-hide' => 'newBuildCtrl.hidePlatform(platform)' }
|
||||||
%div
|
%div
|
||||||
%h5 {{ platform.name }}
|
%h5 {{ platform.name }}
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
|
|
||||||
.col-md-4
|
.col-md-4
|
||||||
%h4= t 'activerecord.attributes.build_list.save_to_repository'
|
%h4= t 'activerecord.attributes.build_list.save_to_repository'
|
||||||
%select.form-control.boffset20{ 'ng-model' => 'newBuildCtrl.save_to_repository',
|
%select.form-control.boffset10{ 'ng-model' => 'newBuildCtrl.save_to_repository',
|
||||||
'ng-options' => 'r.name for r in newBuildCtrl.save_to_repositories track by r.id',
|
'ng-options' => 'r.name for r in newBuildCtrl.save_to_repositories track by r.id',
|
||||||
'ng-change' => 'newBuildCtrl.selectSaveToRepository()',
|
'ng-change' => 'newBuildCtrl.selectSaveToRepository()',
|
||||||
name: 'build_list[save_to_repository_id]',
|
name: 'build_list[save_to_repository_id]',
|
||||||
required: true }
|
required: true }
|
||||||
|
|
||||||
%h4= t 'activerecord.attributes.build_list.project_version'
|
%h4= t 'activerecord.attributes.build_list.project_version'
|
||||||
%select.form-control.boffset20{ 'ng-model' => 'newBuildCtrl.project_version',
|
%select.form-control.boffset10{ 'ng-model' => 'newBuildCtrl.project_version',
|
||||||
'ng-options' => 'v.name group by v.kind for v in newBuildCtrl.project_versions track by v.name',
|
'ng-options' => 'v.name group by v.kind for v in newBuildCtrl.project_versions track by v.name',
|
||||||
'ng-change' => 'newBuildCtrl.selectProjectVersion()',
|
'ng-change' => 'newBuildCtrl.selectProjectVersion()',
|
||||||
'ng-value' => 'newBuildCtrl.project_version',
|
'ng-value' => 'newBuildCtrl.project_version',
|
||||||
|
@ -28,9 +28,9 @@
|
||||||
name: 'arches[]' }
|
name: 'arches[]' }
|
||||||
{{ arch.name }}
|
{{ arch.name }}
|
||||||
|
|
||||||
%h4.offset20= t 'activerecord.attributes.build_list.update_type'
|
%h4.offset10= t 'activerecord.attributes.build_list.update_type'
|
||||||
- selected = params[:build_list].try(:[], :update_type) ? {selected: params[:build_list][:update_type]} : {}
|
- selected = params[:build_list].try(:[], :update_type) ? {selected: params[:build_list][:update_type]} : {}
|
||||||
= f.select :update_type, BuildList::UPDATE_TYPES, selected, class: 'form-control boffset20'
|
= f.select :update_type, BuildList::UPDATE_TYPES, selected, class: 'form-control boffset10'
|
||||||
|
|
||||||
%div{ 'ng-hide' => 'newBuildCtrl.is_build_for_main_platform' }
|
%div{ 'ng-hide' => 'newBuildCtrl.is_build_for_main_platform' }
|
||||||
= render 'shared/autocomplete_form',
|
= render 'shared/autocomplete_form',
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
= hidden_field_tag :from_build_list_id, params[:build_list_id] if params[:build_list_id].present?
|
= hidden_field_tag :from_build_list_id, params[:build_list_id] if params[:build_list_id].present?
|
||||||
= f.submit t('layout.projects.build_button'),
|
= f.submit t('layout.projects.build_button'),
|
||||||
data: {'disable-with' => t('layout.processing')},
|
data: {'disable-with' => t('layout.processing')},
|
||||||
class: 'btn btn-primary offset20'
|
class: 'btn btn-primary offset10'
|
||||||
|
|
||||||
- content_for :additional_scripts do
|
- content_for :additional_scripts do
|
||||||
= render 'projects/build_lists/new_build/init_service.js.erb'
|
= render 'projects/build_lists/new_build/init_service.js.erb'
|
||||||
|
|
|
@ -86,7 +86,7 @@ div[class = 'row'
|
||||||
= @build_list.update_type
|
= @build_list.update_type
|
||||||
|
|
||||||
tr
|
tr
|
||||||
td.offset20.ng-hide ng-show='update_type_errors' colspan=2
|
td.offset10.ng-hide ng-show='update_type_errors' colspan=2
|
||||||
.flash_notify
|
.flash_notify
|
||||||
.alert ng-class="{ 'alert-danger': update_type_errors }"
|
.alert ng-class="{ 'alert-danger': update_type_errors }"
|
||||||
| {{ update_type_errors }}
|
| {{ update_type_errors }}
|
||||||
|
@ -208,7 +208,7 @@ div[class = 'row'
|
||||||
.row
|
.row
|
||||||
= render 'buttons', build_list: @build_list
|
= render 'buttons', build_list: @build_list
|
||||||
|
|
||||||
.row.offset20 ng-show="build_list.status == #{BuildList::BUILD_STARTED}"
|
.row.offset10 ng-show="build_list.status == #{BuildList::BUILD_STARTED}"
|
||||||
= render 'shared/log', { build_started: true, get_log_path: log_build_list_path(@build_list) }
|
= render 'shared/log', { build_started: true, get_log_path: log_build_list_path(@build_list) }
|
||||||
|
|
||||||
hr
|
hr
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
- commit_id = commit_diff.deleted_file ? @commit.parents.first.id : @commit.id
|
- commit_id = commit_diff.deleted_file ? @commit.parents.first.id : @commit.id
|
||||||
- diff_counter_content = "diff-#{commit_diff_counter}_content"
|
- diff_counter_content = "diff-#{commit_diff_counter}_content"
|
||||||
.file.offset20
|
.file.offset10
|
||||||
a name = "diff-#{commit_diff_counter}"
|
a name = "diff-#{commit_diff_counter}"
|
||||||
.top
|
.top
|
||||||
button.btn.btn-link.pull-left[ type = 'button'
|
button.btn.btn-link.pull-left[ type = 'button'
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
.col-xs-12.col-md-10.col-md-offset-1
|
.col-xs-12.col-md-10.col-md-offset-1
|
||||||
.row
|
.row
|
||||||
== render 'repo_block', project: @project
|
== render 'repo_block', project: @project
|
||||||
.offset20
|
.offset10
|
||||||
== render partial: 'commits', object: @commits
|
== render partial: 'commits', object: @commits
|
||||||
== render 'paginate' if @path.blank?
|
== render 'paginate' if @path.blank?
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
input.form-control ng-model = 'query.ref' placeholder = t('layout.search.header')
|
input.form-control ng-model = 'query.ref' placeholder = t('layout.search.header')
|
||||||
.clearfix
|
.clearfix
|
||||||
|
|
||||||
table.table.table-hover.offset20
|
table.table.table-hover.offset10
|
||||||
tbody
|
tbody
|
||||||
tr ng-repeat = 'branch in branches | filter:query' ng-class = '{info: branch.ref == current_ref}'
|
tr ng-repeat = 'branch in branches | filter:query' ng-class = '{info: branch.ref == current_ref}'
|
||||||
td
|
td
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
input.form-control ng-model = 'query.ref' placeholder = t('layout.search.header')
|
input.form-control ng-model = 'query.ref' placeholder = t('layout.search.header')
|
||||||
.clearfix
|
.clearfix
|
||||||
|
|
||||||
table.table.table-hover.offset20
|
table.table.table-hover.offset10
|
||||||
tbody
|
tbody
|
||||||
tr ng-repeat = 'tag in tags | filter:query'
|
tr ng-repeat = 'tag in tags | filter:query'
|
||||||
td
|
td
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
= render 'settings_menu'
|
= render 'settings_menu'
|
||||||
|
|
||||||
= simple_form_for @hook, url: project_hooks_path(@project, @hook),
|
= simple_form_for @hook, url: project_hooks_path(@project, @hook),
|
||||||
html: { class: 'form-horizontal offset20' },
|
html: { class: 'form-horizontal offset10' },
|
||||||
wrapper: :horizontal_form do |f|
|
wrapper: :horizontal_form do |f|
|
||||||
|
|
||||||
h2= t("layout.hooks.services.#{@hook.name}")
|
h2= t("layout.hooks.services.#{@hook.name}")
|
||||||
|
@ -14,6 +14,6 @@
|
||||||
|
|
||||||
.col-sm-offset-3.col-sm-9
|
.col-sm-offset-3.col-sm-9
|
||||||
= f.button :submit, t('layout.update'), data: {'disable-with' => t('layout.processing')},
|
= f.button :submit, t('layout.update'), data: {'disable-with' => t('layout.processing')},
|
||||||
class: 'btn btn-primary boffset20'
|
class: 'btn btn-primary boffset10'
|
||||||
|
|
||||||
.col-sm-offset-3.col-sm-9= render "projects/hooks/docs/#{@hook.name}"
|
.col-sm-offset-3.col-sm-9= render "projects/hooks/docs/#{@hook.name}"
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
= render 'settings_menu'
|
= render 'settings_menu'
|
||||||
|
|
||||||
= simple_form_for @hook, url: project_hooks_path(@project),
|
= simple_form_for @hook, url: project_hooks_path(@project),
|
||||||
html: { class: 'form-horizontal offset20' },
|
html: { class: 'form-horizontal offset10' },
|
||||||
wrapper: :horizontal_form do |f|
|
wrapper: :horizontal_form do |f|
|
||||||
h2= t("layout.hooks.services.#{@hook.name}")
|
h2= t("layout.hooks.services.#{@hook.name}")
|
||||||
= render "form", f: f
|
= render "form", f: f
|
||||||
|
|
||||||
.col-sm-offset-3.col-sm-9
|
.col-sm-offset-3.col-sm-9
|
||||||
= f.button :submit, t('layout.create'), data: {'disable-with' => t('layout.saving')},
|
= f.button :submit, t('layout.create'), data: {'disable-with' => t('layout.saving')},
|
||||||
class: 'btn btn-primary boffset20'
|
class: 'btn btn-primary boffset10'
|
||||||
|
|
||||||
.col-sm-offset-3.col-sm-9= render "projects/hooks/docs/#{@hook.name}"
|
.col-sm-offset-3.col-sm-9= render "projects/hooks/docs/#{@hook.name}"
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
= link_to t('layout.create'),
|
= link_to t('layout.create'),
|
||||||
new_project_hook_path(@project, hook: {name: @name}),
|
new_project_hook_path(@project, hook: {name: @name}),
|
||||||
class: 'btn btn-primary boffset20'
|
class: 'btn btn-primary boffset10'
|
||||||
.clearfix
|
.clearfix
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -19,4 +19,4 @@
|
||||||
typeahead-on-select = "issueCtrl.selectAssignee($item, $model, $label)"
|
typeahead-on-select = "issueCtrl.selectAssignee($item, $model, $label)"
|
||||||
typeahead-template-url = "search_collaborators.html" ]
|
typeahead-template-url = "search_collaborators.html" ]
|
||||||
.clearfix
|
.clearfix
|
||||||
.offset20
|
.offset10
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.offset20 ng-hide='issueCtrl.edit'
|
.offset10 ng-hide='issueCtrl.edit'
|
||||||
h3#issue_title_text
|
h3#issue_title_text
|
||||||
= @issue.title
|
= @issue.title
|
||||||
.panel.panel-default
|
.panel.panel-default
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
== render "projects/comments/add", project: @project, commentable: @issue
|
== render "projects/comments/add", project: @project, commentable: @issue
|
||||||
|
|
||||||
- if can?(:update, @issue)
|
- if can?(:update, @issue)
|
||||||
.offset20 ng-show = 'issueCtrl.edit'
|
.offset10 ng-show = 'issueCtrl.edit'
|
||||||
h3= t('layout.issues.edit_header')
|
h3= t('layout.issues.edit_header')
|
||||||
|
|
||||||
= simple_form_for @issue, url: project_issue_path(@project, @issue) do |f|
|
= simple_form_for @issue, url: project_issue_path(@project, @issue) do |f|
|
||||||
|
|
|
@ -10,6 +10,6 @@
|
||||||
-if can?(:write, @project)
|
-if can?(:write, @project)
|
||||||
input.hidden name = 'issue[assignee_id]' ng-value = 'issueCtrl.assignee.id'
|
input.hidden name = 'issue[assignee_id]' ng-value = 'issueCtrl.assignee.id'
|
||||||
a< href = ''
|
a< href = ''
|
||||||
i [ class = 'fa fa-share-square-o boffset20'
|
i [ class = 'fa fa-share-square-o boffset10'
|
||||||
ng-click = 'issueCtrl.toggle_manage_assignee = !issueCtrl.toggle_manage_assignee' ]
|
ng-click = 'issueCtrl.toggle_manage_assignee = !issueCtrl.toggle_manage_assignee' ]
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
|
|
||||||
.col-xs-12.col-md-10.col-md-offset-1 ng-controller = 'IssuesController as issuesCtrl' ng-cloak = true
|
.col-xs-12.col-md-10.col-md-offset-1 ng-controller = 'IssuesController as issuesCtrl' ng-cloak = true
|
||||||
.row
|
.row
|
||||||
.col-md-3.col-sm-4.offset20
|
.col-md-3.col-sm-4.offset10
|
||||||
== render 'index_sidebar', project: @project
|
== render 'index_sidebar', project: @project
|
||||||
.col-md-9.col-sm-8.offset20
|
.col-md-9.col-sm-8.offset10
|
||||||
tabset.boffset10
|
tabset.boffset10
|
||||||
tab[ heading = "#{t "layout.issues.statuses.open"} ({{issuesCtrl.filter.opened_count}})"
|
tab[ heading = "#{t "layout.issues.statuses.open"} ({{issuesCtrl.filter.opened_count}})"
|
||||||
active = 'issuesCtrl.filter.status_open'
|
active = 'issuesCtrl.filter.status_open'
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
.row
|
.row
|
||||||
- can_write = can?(:write, @project)
|
- can_write = can?(:write, @project)
|
||||||
- if can_write
|
- if can_write
|
||||||
.col-md-3.col-sm-4.offset20
|
.col-md-3.col-sm-4.offset10
|
||||||
== render 'select_labels'
|
== render 'select_labels'
|
||||||
== render 'manage_labels'
|
== render 'manage_labels'
|
||||||
|
|
||||||
.col-md-9.col-sm-8.offset20[ class = "#{'col-md-offset-2' unless can_write}" ]
|
.col-md-9.col-sm-8.offset10[ class = "#{'col-md-offset-2' unless can_write}" ]
|
||||||
h3= title t('layout.issues.create_header')
|
h3= title t('layout.issues.create_header')
|
||||||
== render 'form', f: f
|
== render 'form', f: f
|
||||||
= submit_tag t('layout.create'),
|
= submit_tag t('layout.create'),
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
.col-xs-12.col-md-10.col-md-offset-1 ng-controller = 'IssueController as issueCtrl' ng-cloak = true
|
.col-xs-12.col-md-10.col-md-offset-1 ng-controller = 'IssueController as issueCtrl' ng-cloak = true
|
||||||
.row
|
.row
|
||||||
.col-md-3.col-sm-4.offset20
|
.col-md-3.col-sm-4.offset10
|
||||||
== render 'status_sidebar'
|
== render 'status_sidebar'
|
||||||
- if can?(:write, @project)
|
- if can?(:write, @project)
|
||||||
= simple_form_for @issue, url: project_issue_path(@project, @issue) do |f|
|
= simple_form_for @issue, url: project_issue_path(@project, @issue) do |f|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
h3= t('.header')
|
h3= t('.header')
|
||||||
|
|
||||||
table.table.table-condensed.offset20
|
table.table.table-condensed.offset10
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
th= t('.name')
|
th= t('.name')
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
ng-init = "autostart_status = '#{@project.autostart_status}'" ]
|
ng-init = "autostart_status = '#{@project.autostart_status}'" ]
|
||||||
option[ value = '' ]
|
option[ value = '' ]
|
||||||
|
|
||||||
table.table.table-condensed.offset20
|
table.table.table-condensed.offset10
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
th= t('activerecord.attributes.repository.name')
|
th= t('activerecord.attributes.repository.name')
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
%input.form-control{ name: 'search', size: '30', type: 'text', 'ng-model' => 'search',
|
%input.form-control{ name: 'search', size: '30', type: 'text', 'ng-model' => 'search',
|
||||||
placeholder: t('layout.find_project'), 'ng-change' => 'getProjects()' }
|
placeholder: t('layout.find_project'), 'ng-change' => 'getProjects()' }
|
||||||
- if can?(:create, Project)
|
- if can?(:create, Project)
|
||||||
%hr.offset20
|
%hr.offset10
|
||||||
%p= link_to t('layout.projects.new'), new_project_path, class: 'btn btn-primary'
|
%p= link_to t('layout.projects.new'), new_project_path, class: 'btn btn-primary'
|
||||||
- if can?(:mass_import, Project)
|
- if can?(:mass_import, Project)
|
||||||
%p= link_to t('layout.projects.mass_import'), mass_import_projects_path, class: 'btn btn-primary'
|
%p= link_to t('layout.projects.mass_import'), mass_import_projects_path, class: 'btn btn-primary'
|
||||||
%hr.offset20
|
%hr.offset10
|
||||||
%h3=t('layout.relations.filters')
|
%h3=t('layout.relations.filters')
|
||||||
%ul.nav.nav-pills.nav-stacked
|
%ul.nav.nav-pills.nav-stacked
|
||||||
- options_for_filters(@projects, @groups, @owners).each do |options|
|
- options_for_filters(@projects, @groups, @owners).each do |options|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
-set_meta_tags title: t('layout.projects.list_header')
|
-set_meta_tags title: t('layout.projects.list_header')
|
||||||
.col-xs-12.col-md-10.col-md-offset-1 ng-controller = 'ProjectsCtrl'
|
.col-xs-12.col-md-10.col-md-offset-1 ng-controller = 'ProjectsCtrl'
|
||||||
.row.offset20
|
.row.offset10
|
||||||
.col-md-3.col-sm-4== render 'filters'
|
.col-md-3.col-sm-4== render 'filters'
|
||||||
.col-md-9.col-sm-8
|
.col-md-9.col-sm-8
|
||||||
.toolbar
|
.toolbar
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
-comment = item[1].first
|
-comment = item[1].first
|
||||||
.panel.panel-default.offset20
|
.panel.panel-default.offset10
|
||||||
.panel-heading
|
.panel-heading
|
||||||
=comment.data[:view_path]
|
=comment.data[:view_path]
|
||||||
.pull-right
|
.pull-right
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
- commit_id = pull_diff.deleted_file ? @pull.to_commit.id : @pull.from_commit.id
|
- commit_id = pull_diff.deleted_file ? @pull.to_commit.id : @pull.from_commit.id
|
||||||
- diff_counter = "diff-#{pull_diff_counter}"
|
- diff_counter = "diff-#{pull_diff_counter}"
|
||||||
- diff_counter_content = "#{diff_counter}_content"
|
- diff_counter_content = "#{diff_counter}_content"
|
||||||
.file.offset20
|
.file.offset10
|
||||||
a name = diff_counter
|
a name = diff_counter
|
||||||
.top
|
.top
|
||||||
button.btn.btn-link.pull-left[ type = 'button'
|
button.btn.btn-link.pull-left[ type = 'button'
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
= simple_form_for @pull, url: (@pull.already? ? new_project_pull_request_path : project_pull_requests_path),
|
= simple_form_for @pull, url: (@pull.already? ? new_project_pull_request_path : project_pull_requests_path),
|
||||||
html: {method: (@pull.already? ? :get : :post)} do |f|
|
html: {method: (@pull.already? ? :get : :post)} do |f|
|
||||||
|
|
||||||
.form-group.offset20
|
.form-group.offset10
|
||||||
= f.label :from_project, t("#{ar}.from_project"), class: 'col-sm-2 control-label'
|
= f.label :from_project, t("#{ar}.from_project"), class: 'col-sm-2 control-label'
|
||||||
.col-sm-10
|
.col-sm-10
|
||||||
.row
|
.row
|
||||||
|
@ -40,13 +40,13 @@
|
||||||
|
|
||||||
.form-group
|
.form-group
|
||||||
.col-sm-offset-2.col-sm-10
|
.col-sm-offset-2.col-sm-10
|
||||||
= f.submit t('.update'), class: 'btn btn-primary offset20',
|
= f.submit t('.update'), class: 'btn btn-primary offset10',
|
||||||
style: @pull.already? ? '' : 'display: none;',
|
style: @pull.already? ? '' : 'display: none;',
|
||||||
id: 'update_pull', data: {'disable-with' => t('layout.processing')}
|
id: 'update_pull', data: {'disable-with' => t('layout.processing')}
|
||||||
|
|
||||||
-unless @pull.already?
|
-unless @pull.already?
|
||||||
.clearfix
|
.clearfix
|
||||||
.offset20 ng-controller = 'IssueController as issueCtrl' ng-cloak = true
|
.offset10 ng-controller = 'IssueController as issueCtrl' ng-cloak = true
|
||||||
= f.fields_for :issue do |issue|
|
= f.fields_for :issue do |issue|
|
||||||
== render 'projects/issues/form', f: issue
|
== render 'projects/issues/form', f: issue
|
||||||
.form-group
|
.form-group
|
||||||
|
@ -55,11 +55,11 @@
|
||||||
data: {'disable-with' => t('layout.processing')} unless @pull.already?
|
data: {'disable-with' => t('layout.processing')} unless @pull.already?
|
||||||
- if !@pull.already? && @stats != nil
|
- if !@pull.already? && @stats != nil
|
||||||
#diff.tab-pane
|
#diff.tab-pane
|
||||||
.offset20.content
|
.offset10.content
|
||||||
== render 'diff_tab'
|
== render 'diff_tab'
|
||||||
|
|
||||||
#commits.tab-pane
|
#commits.tab-pane
|
||||||
.offset20.content
|
.offset10.content
|
||||||
== render 'commits_tab'
|
== render 'commits_tab'
|
||||||
|
|
||||||
- content_for :additional_scripts do
|
- content_for :additional_scripts do
|
||||||
|
|
|
@ -24,15 +24,15 @@
|
||||||
- if current_user
|
- if current_user
|
||||||
hr
|
hr
|
||||||
== render 'projects/comments/add', project: @project, commentable: @issue
|
== render 'projects/comments/add', project: @project, commentable: @issue
|
||||||
.pull_status.offset20== render 'status'
|
.pull_status.offset10== render 'status'
|
||||||
|
|
||||||
#diff.tab-pane
|
#diff.tab-pane
|
||||||
.offset20.content ng-hide = 'pullCtrl.processing'
|
.offset10.content ng-hide = 'pullCtrl.processing'
|
||||||
i.fa.fa-spinner.fa-spin.fa-lg.offset20 ng-show = 'pullCtrl.processing'
|
i.fa.fa-spinner.fa-spin.fa-lg.offset10 ng-show = 'pullCtrl.processing'
|
||||||
|
|
||||||
#commits.tab-pane
|
#commits.tab-pane
|
||||||
.offset20.content ng-hide = 'pullCtrl.processing'
|
.offset10.content ng-hide = 'pullCtrl.processing'
|
||||||
i.fa.fa-spinner.fa-spin.fa-lg.offset20 ng-show = 'pullCtrl.processing'
|
i.fa.fa-spinner.fa-spin.fa-lg.offset10 ng-show = 'pullCtrl.processing'
|
||||||
|
|
||||||
div ng-non-bindable = true
|
div ng-non-bindable = true
|
||||||
== render 'projects/comments/new_line'
|
== render 'projects/comments/new_line'
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
strong= @page.name
|
strong= @page.name
|
||||||
- else
|
- else
|
||||||
= t('wiki.wiki_history')
|
= t('wiki.wiki_history')
|
||||||
.col-md-6.offset20
|
.col-md-6.offset10
|
||||||
= simple_form_for :project, url: revert_path(@project, @versions.first[0..6], (@versions.size == 1) ? 'prev' : @versions.last[0..6], @name) do |f|
|
= simple_form_for :project, url: revert_path(@project, @versions.first[0..6], (@versions.size == 1) ? 'prev' : @versions.last[0..6], @name) do |f|
|
||||||
- if can? :read, @project
|
- if can? :read, @project
|
||||||
a.btn.btn-primary> href=(@name ? history_project_wiki_path(@project, escaped_name) : history_project_wiki_index_path(@project))
|
a.btn.btn-primary> href=(@name ? history_project_wiki_path(@project, escaped_name) : history_project_wiki_index_path(@project))
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
=> t('wiki.editing_page')
|
=> t('wiki.editing_page')
|
||||||
strong= @page.name
|
strong= @page.name
|
||||||
- if can? :read, @project
|
- if can? :read, @project
|
||||||
.col-md-4.offset20
|
.col-md-4.offset10
|
||||||
a.btn.btn-primary> href=view_path(@project, escaped_name)
|
a.btn.btn-primary> href=view_path(@project, escaped_name)
|
||||||
= t('wiki.view_page')
|
= t('wiki.view_page')
|
||||||
a.btn.btn-primary> href=history_project_wiki_path(@project, escaped_name)
|
a.btn.btn-primary> href=history_project_wiki_path(@project, escaped_name)
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
strong= @query
|
strong= @query
|
||||||
= raw t("wiki.search_results_for", query: @st_query)
|
= raw t("wiki.search_results_for", query: @st_query)
|
||||||
- if can? :read, @project
|
- if can? :read, @project
|
||||||
.col-md-2.offset20
|
.col-md-2.offset10
|
||||||
a.btn.btn-primary href=project_wiki_index_path(@project)
|
a.btn.btn-primary href=project_wiki_index_path(@project)
|
||||||
= t('wiki.home')
|
= t('wiki.home')
|
||||||
hr
|
hr
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
= @page.name
|
= @page.name
|
||||||
= "(#{ t("wiki.preview") })" if action_name == 'preview'
|
= "(#{ t("wiki.preview") })" if action_name == 'preview'
|
||||||
- unless action_name == 'preview'
|
- unless action_name == 'preview'
|
||||||
.col-md-8.offset20
|
.col-md-8.offset10
|
||||||
a.btn.btn-primary> href=history_project_wiki_path(@project, escaped_name)
|
a.btn.btn-primary> href=history_project_wiki_path(@project, escaped_name)
|
||||||
= t('wiki.page_history')
|
= t('wiki.page_history')
|
||||||
- if @editable
|
- if @editable
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
.col-md-3.col-md-offset-1
|
.col-md-3.col-md-offset-1
|
||||||
h3
|
h3
|
||||||
= t('.advanced')
|
= t('.advanced')
|
||||||
.col-md-7.offset20
|
.col-md-7.offset10
|
||||||
= simple_form_for @search, url: search_index_path, method: :get do |f|
|
= simple_form_for @search, url: search_index_path, method: :get do |f|
|
||||||
.row
|
.row
|
||||||
.col-md-6
|
.col-md-6
|
||||||
|
|
|
@ -53,9 +53,9 @@
|
||||||
a href="#"
|
a href="#"
|
||||||
= t('top_menu.statistics')
|
= t('top_menu.statistics')
|
||||||
|
|
||||||
.offset20 ng-show="tab == 'projects'" ng-controller='ProfileController' ng-cloak = true
|
.offset10 ng-show="tab == 'projects'" ng-controller='ProfileController' ng-cloak = true
|
||||||
= render 'projects', subject: @user
|
= render 'projects', subject: @user
|
||||||
#manage-statistics.offset20[ ng-show = "tab == 'statistics'"
|
#manage-statistics.offset10[ ng-show = "tab == 'statistics'"
|
||||||
ng-controller = 'StatisticsController'
|
ng-controller = 'StatisticsController'
|
||||||
ng-cloak = true ]
|
ng-cloak = true ]
|
||||||
= render 'statistics'
|
= render 'statistics'
|
||||||
|
|
|
@ -29,7 +29,7 @@ Component: timeline
|
||||||
--------------------
|
--------------------
|
||||||
*/
|
*/
|
||||||
.timeline {
|
.timeline {
|
||||||
margin: 0 0 30px 0;
|
margin: 0 0 10px 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
@ -49,8 +49,8 @@ Component: timeline
|
||||||
}
|
}
|
||||||
.timeline > li {
|
.timeline > li {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-right: 10px;
|
margin-right: 5px;
|
||||||
margin-bottom: 15px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
.timeline > li:before,
|
.timeline > li:before,
|
||||||
.timeline > li:after {
|
.timeline > li:after {
|
||||||
|
@ -61,12 +61,12 @@ Component: timeline
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
.timeline > li > .timeline-item {
|
.timeline > li > .timeline-item {
|
||||||
margin-top: 10px;
|
margin-top: 5px;
|
||||||
border: 0px solid #b2b2b2;
|
border: 0px solid #b2b2b2;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
color: #555;
|
color: #555;
|
||||||
margin-left: 60px;
|
margin-left: 60px;
|
||||||
margin-right: 15px;
|
margin-right: 8px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
position: relative;
|
position: relative;
|
||||||
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
|
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
|
||||||
|
@ -88,11 +88,11 @@ Component: timeline
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
.timeline > li > .timeline-item > .timeline-header > a > img {
|
.timeline > li > .timeline-item > .timeline-header > a > img {
|
||||||
margin: 0 10px 0 10px;
|
margin: 0 5px;
|
||||||
}
|
}
|
||||||
.timeline > li > .timeline-item > .timeline-body,
|
.timeline > li > .timeline-item > .timeline-body,
|
||||||
.timeline > li > .timeline-item > .timeline-footer {
|
.timeline > li > .timeline-item > .timeline-footer {
|
||||||
padding: 5px 10px 5px 10px;
|
padding: 0 8px;
|
||||||
}
|
}
|
||||||
.timeline > li.time-label > span {
|
.timeline > li.time-label > span {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
Loading…
Reference in New Issue