Skip to content

Commit

Permalink
Remove link_to_package_... Bento helper
Browse files Browse the repository at this point in the history
Now that we are only using the new web interface, we want to get rid
of all the helpers only used with Bento.
  • Loading branch information
eduardoj committed Sep 2, 2019
1 parent 98aba55 commit e87e54d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
10 changes: 0 additions & 10 deletions src/api/app/helpers/webui/packages/job_history_helper.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
module Webui::Packages::JobHistoryHelper
include Webui::ProjectHelper

def link_to_package_from_job_history(project, package, jobhistory, is_link)
title = "Package:#{package} | revision:#{jobhistory.revision}"
params = { project: project, package: package }
params = is_link ? params.merge(srcmd5: jobhistory.srcmd5) : params.merge(rev: jobhistory.revision)

link_to(sprite_tag('req-showdiff', title: title), package_show_path(params))
end

def html_class_for_state(state)
case state
when 'succeeded'
Expand Down
21 changes: 0 additions & 21 deletions src/api/spec/helpers/webui/packages/job_history_helper_spec.rb

This file was deleted.

0 comments on commit e87e54d

Please sign in to comment.