This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hotfix v0.36.1: Add layout for contribution discussion page **Fixes:** - Add page layout for contribution discussion page to have the project and contribution navigation rendered
- Loading branch information
Showing
5 changed files
with
46 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
.page-subheading.gray.lighten-3.no-padding-bottom.no-margin-bottom | ||
.container | ||
.row.no-margin-bottom | ||
.col.s12 | ||
p.flow-text.no-margin | ||
b = contribution.title | ||
p.no-margin | ||
' proposed by | ||
=> link_to profile_path(contribution.creator) | ||
= contribution.creator.name | ||
| · | ||
=<> time_ago_in_words(contribution.created_at) | ||
| ago | ||
- if contribution.accepted? | ||
= ' ' | ||
| · accepted | ||
.container | ||
.row.no-margin-bottom | ||
.col.s12 | ||
p.flow-text.no-margin | ||
b = contribution.title | ||
p.no-margin | ||
' proposed by | ||
=> link_to profile_path(contribution.creator) | ||
= contribution.creator.name | ||
| · | ||
=<> time_ago_in_words(contribution.created_at) | ||
| ago | ||
- if contribution.accepted? | ||
= ' ' | ||
| · accepted | ||
|
||
div.tabs.static.no-margin-top | ||
div.tab | ||
= link_to 'Discussion', profile_project_contribution_path(project.owner, project, contribution), | ||
class: ('active' if active_tab == :discussion) | ||
div.tab | ||
= link_to 'Files', profile_project_contribution_root_folder_path(project.owner, project, contribution), | ||
class: ('active' if active_tab == :files) | ||
div.tab | ||
= link_to 'Review', profile_project_contribution_review_path(project.owner, project, contribution), | ||
class: ('active' if active_tab == :review) | ||
- if contribution.files.root&.link_to_remote.present? | ||
div.tabs.static.no-margin-top | ||
div.tab | ||
= link_to contribution.files.root.link_to_remote, target: '_blank' do | ||
svg style="width:24px;height:24px" viewBox="0 0 24 24" class="left" | ||
path fill="currentColor" d="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z" | ||
| Open in Drive | ||
end | ||
= link_to 'Discussion', profile_project_contribution_path(project.owner, project, contribution), | ||
class: ('active' if active_tab == :discussion) | ||
div.tab | ||
= link_to 'Files', profile_project_contribution_root_folder_path(project.owner, project, contribution), | ||
class: ('active' if active_tab == :files) | ||
div.tab | ||
= link_to 'Review', profile_project_contribution_review_path(project.owner, project, contribution), | ||
class: ('active' if active_tab == :review) | ||
- if contribution.files.root&.link_to_remote.present? | ||
div.tab | ||
= link_to contribution.files.root.link_to_remote, target: '_blank' do | ||
svg style="width:24px;height:24px" viewBox="0 0 24 24" class="left" | ||
path fill="currentColor" d="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z" | ||
| Open in Drive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
= render partial: 'contributions/head', object: @contribution, as: :contribution, | ||
locals: { project: @project, active_tab: :discussion } | ||
|
||
= yield | ||
|
||
= parent_layout 'contribution' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters