Skip to content

Commit

Permalink
Merge pull request #3218 from mzazrivec/make_labels_translatable_in_c…
Browse files Browse the repository at this point in the history
…ontainer_image_textual_summary

Make labels translatable in container image textual summary
(cherry picked from commit 70b2f84)

https://bugzilla.redhat.com/show_bug.cgi?id=1533518
  • Loading branch information
himdel authored and simaishi committed Jan 11, 2018
1 parent 8ddcf63 commit 5bb0d82
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/helpers/container_image_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@ def textual_product_name
{:label => _("Product Name"), :value => name} if name
end

def textual_author
{:label => _('Author'), :value => @record.author}
end

def textual_entrypoint
{:label => _('Entrypoint'), :value => @record.entrypoint.join(' ')}
end

def textual_docker_version
{:label => _('Docker Version'), :value => @record.docker_version}
end

def textual_compliance_history
super(:title => _("Show Compliance History of this Container Image (Last 10 Checks)"),
:explorer => true)
Expand Down

0 comments on commit 5bb0d82

Please sign in to comment.