0aab84c760
Display Star and Fork on mobile, fix #18537. ## What does this MR do? Displays the Star and Fork buttons on mobile devices. ## Are there points in the code the reviewer needs to double check? Nope. ## Why was this MR needed? I wanted to star and/or fork projects while on my phone, I couldn't do that before. ## What are the relevant issue numbers? #18537 ## Screenshots (if relevant) ![Screen_Shot_2016-06-16_at_11.41.24_AM](/uploads/053ac0c1b39a7b1b30fffb0a8d43cffb/Screen_Shot_2016-06-16_at_11.41.24_AM.png) cc: @jschatz1 See merge request !4714
41 lines
1.5 KiB
Text
41 lines
1.5 KiB
Text
- empty_repo = @project.empty_repo?
|
|
.project-home-panel.cover-block.clearfix{:class => ("empty-project" if empty_repo)}
|
|
%div{ class: (container_class) }
|
|
.row
|
|
.project-image-container
|
|
= project_icon(@project, alt: '', class: 'project-avatar avatar s70')
|
|
.project-info
|
|
.cover-title.project-home-desc
|
|
%h1
|
|
= @project.name
|
|
%span.visibility-icon.has-tooltip{data: { container: 'body' }, title: visibility_icon_description(@project)}
|
|
= visibility_level_icon(@project.visibility_level, fw: false)
|
|
|
|
- if @project.description.present?
|
|
.cover-desc.project-home-desc
|
|
= markdown(@project.description, pipeline: :description)
|
|
|
|
- if forked_from_project = @project.forked_from_project
|
|
.cover-desc
|
|
Forked from
|
|
= link_to project_path(forked_from_project) do
|
|
= forked_from_project.namespace.try(:name)
|
|
|
|
.project-repo-buttons.project-action-buttons
|
|
.count-buttons
|
|
= render 'projects/buttons/star'
|
|
= render 'projects/buttons/fork'
|
|
|
|
.project-clone-holder
|
|
= render "shared/clone_panel"
|
|
|
|
.project-repo-buttons.btn-group.project-right-buttons
|
|
- if current_user
|
|
= render 'shared/members/access_request_buttons', source: @project
|
|
|
|
= render "projects/buttons/download"
|
|
= render 'projects/buttons/dropdown'
|
|
= render 'shared/notifications/button', notification_setting: @notification_setting
|
|
|
|
:javascript
|
|
new Star();
|