Merge pull request #85 from abf/rosa-build:84-missing-block-creating-mass-build
#84: Missing block "creating mass build" for platform admins
This commit is contained in:
commit
7de91502fb
|
@ -13,7 +13,7 @@
|
|||
- if can? :show, @platform
|
||||
%li{:class => (act == :index && contr == :maintainers) ? 'active' : nil}
|
||||
= link_to t("layout.platforms.maintainers"), platform_maintainers_path(@platform)
|
||||
- if can? :show, @platform
|
||||
- if @platform.main? && can?(:show, @platform)
|
||||
%li{:class => (contr == :mass_builds && [:index, :create].include?(act)) ? 'active' : ''}
|
||||
= link_to t("layout.platforms.mass_build"), platform_mass_builds_path(@platform)
|
||||
- if can? :read, @platform.products.build
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
= render 'platforms/base/submenu'
|
||||
= render 'platforms/base/sidebar'
|
||||
|
||||
= render 'form' if can? :edit, @platform
|
||||
= render 'form' if can? :create, @platform.mass_builds.new
|
||||
|
||||
%table.tablesorter.unbordered{:cellpadding => "0", :cellspacing => "0"}
|
||||
%thead
|
||||
|
|
Loading…
Reference in New Issue