Skip to content

Commit

Permalink
[webui] Don't display flags for project linked packages
Browse files Browse the repository at this point in the history
  • Loading branch information
hennevogel committed Jan 13, 2016
1 parent 619861d commit 309e78d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/api/app/views/webui/package/repositories.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@
<%= render :partial => 'tabs' %>

<h3><%= @pagetitle %></h3>
<p>You can configure individual flags for this package here. The repositories
are inherited from the project <%= link_to @project, :controller => :project, :action => :repositories, :project => @project %>. </p>

<%= render :partial => 'shared/repositories', :locals => { :obj => @package } %>

<% if @package.project == @project %>
<p>
You can configure individual flags for this package here. The repositories are inherited from the project
<%= link_to @project, :controller => :project, :action => :repositories, :project => @project %>.
</p>
<%= render :partial => 'shared/repositories', :locals => { :obj => @package } %>
<% else %>
<p>
This package is inherited from the project
<%= link_to @package.project, :controller => :project, :action => :repositories, :project => @package.project %>
and changing repository flags has no effect.
</p>
<% end %>

0 comments on commit 309e78d

Please sign in to comment.