diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-10 21:09:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-10 21:09:07 +0300 |
commit | 206b03aeae3a368983ac3d6ad5e5828030bbaacd (patch) | |
tree | d36ce0745729f64bb54c468422f896c53748672c /app/presenters | |
parent | ff06f859cdabec3c874c004f93fe5082aeacf917 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters')
-rw-r--r-- | app/presenters/project_presenter.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/presenters/project_presenter.rb b/app/presenters/project_presenter.rb index 392eeafb2b4..0f5b601f2b0 100644 --- a/app/presenters/project_presenter.rb +++ b/app/presenters/project_presenter.rb @@ -13,7 +13,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated presents :project - AnchorData = Struct.new(:is_link, :label, :link, :class_modifier, :icon) + AnchorData = Struct.new(:is_link, :label, :link, :class_modifier, :icon, :itemprop) MAX_TOPICS_TO_SHOW = 3 def statistic_icon(icon_name = 'plus-square-o') @@ -277,7 +277,9 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated AnchorData.new(false, icon + content_tag(:span, license_short_name, class: 'project-stat-value'), license_path, - 'default') + 'default', + nil, + 'license') else if current_user && can_current_user_push_to_default_branch? AnchorData.new(false, |