Skip to content

Commit

Permalink
Merge pull request #2260 from mschnitzer/remove_build_result_icons
Browse files Browse the repository at this point in the history
[webui] Remove build result icon
  • Loading branch information
Moisés Déniz Alemán committed Oct 25, 2016
2 parents 73187f7 + 894a4ab commit d75a0a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
1 change: 1 addition & 0 deletions docs/ReleaseNotes-2.7
Expand Up @@ -106,6 +106,7 @@ Webui Features
Without this fix, text files such as _log are served with
`Content-Disposition: attachment`, which makes Firefox prompt the user to
download the file rather than simply showing the text within the browser.
* Improve load time when loading open requests for a user on profile page.


Notes for systems using systemd:
Expand Down
13 changes: 0 additions & 13 deletions src/api/app/views/shared/_single_request.html.erb
Expand Up @@ -5,13 +5,6 @@
request_type = cp[:request_type]
target_package = cp[:target_package]
target_project = cp[:target_project]
if source_package && source_package != :multiple && source_project != :multiple
source_url = url_for(controller: 'package', action: 'show', project: source_project, package: source_package)
buildresult_url = url_for(controller: 'project', action: 'package_buildresult', project: source_project, package: source_package)
source_exists = Package.exists_by_project_and_name(source_project, source_package)
else
source_exists = false
end
-%>

<tr id="tr_request_<%= "#{req.id}" %>" class="request-<%= req.priority %>">
Expand Down Expand Up @@ -53,11 +46,5 @@
<td>
<%= link_to(sprite_tag('req-showdiff', title: "Show request ##{req.number}"),
{ :controller => :request, :action => :show, :number => req.number }, { :class => 'request_link' }) -%>
<% if source_package && source_package != :multiple && source_exists %>
<%= link_to(sprite_tag('information', title: 'Build results', number: "req_#{req.number}"), source_url) %>
<%= javascript_tag do %>
setup_buildresult_tooltip('<%= "req_#{req.number}" %>', '<%= buildresult_url %>')
<% end %>
<% end %>
</td>
</tr>

0 comments on commit d75a0a8

Please sign in to comment.