Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[webui] don't query cmd=showlinked for packages
We have the links_to info in the database now
- Loading branch information
Showing
5 changed files
with
21 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 15 additions & 15 deletions
30
src/api/webui/app/views/webui/package/_linking_packages.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<div class="dialog" id="disable_mask"></div> | ||
<div class="dialog darkgrey_box" id="linking_packages"> | ||
<div class="box box-shadow"> | ||
<h2 class="box-header">Derived Packages</h2> | ||
<ul> | ||
<% @linking_packages.each do |lp| %> | ||
<% if lp[:package] != @package.name %> | ||
<% name = elide_two(lp[:project], lp[:package], 46).join(' / ') %> | ||
<div class="dialog" id="disable_mask"></div> | ||
<div class="dialog darkgrey_box" id="linking_packages"> | ||
<div class="box box-shadow"> | ||
<h2 class="box-header">Derived Packages</h2> | ||
<ul> | ||
<% @linking_packages.each do |lp| %> | ||
<% if lp.name != @package.name %> | ||
<% name = elide_two(lp.project.name, lp.name, 46).join(' / ') %> | ||
<% else %> | ||
<% name = elide(lp[:project], 46) %> | ||
<% name = elide(lp.project.name, 46) %> | ||
<% end %> | ||
<li><%= link_to(name, :controller => 'package', :action => 'show', :project => lp[:project], :package => lp[:package]) %></li> | ||
<% end %> | ||
</ul> | ||
<div class="buttons"> | ||
<%= remove_dialog_tag('Cancel') %> | ||
</div> | ||
<li><%= link_to(name, :controller => 'package', :action => 'show', :project => lp.project.name, :package => lp.name) %></li> | ||
<% end %> | ||
</ul> | ||
<div class="buttons"> | ||
<%= remove_dialog_tag('Cancel') %> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters