Skip to content

Commit

Permalink
[webui]Changed header for patchinfo-view to category and package-names
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrunner authored and saschpe committed Mar 22, 2012
1 parent 0c22ce9 commit 71cf453
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/webui/app/controllers/patchinfo_controller.rb
Expand Up @@ -51,6 +51,12 @@ def edit_patchinfo

def show_patchinfo
read_patchinfo
@pkg_names = Array.new
packages = find_cached(Package, :all, :project => @project.name, :expires_in => 30.seconds )
packages.each do |pkg|
@pkg_names << pkg.value(:name)
end
@pkg_names.delete("patchinfo")
@description = @description.gsub(/\n/, "<br/>").html_safe
@summary = @summary.gsub(/\n/, "<br/>").html_safe
@packager = Person.find(:login => @packager)
Expand Down
2 changes: 1 addition & 1 deletion src/webui/app/views/patchinfo/show_patchinfo.html.erb
Expand Up @@ -6,7 +6,7 @@
<div class="grid_8 alpha">
<div class="box show_left show_right">
<div class="box" style="background-color:#DDDDDD; margin-top: 0">
<h2 style="display: inline"><%=h @project.title.text%></h2>
<h2 style="display: inline"><%= @category %> update for <%= @pkg_names.join(", ") %></h2>
<span>
<% if (@project.is_maintainer?( session[:login] ) || @package.is_maintainer?( session[:login] )) && !@project.is_locked? %>
<span>
Expand Down

0 comments on commit 71cf453

Please sign in to comment.