|
1 | 1 | .page-subheading.gray.lighten-3.no-padding-bottom.no-margin-bottom
|
2 |
| - .container |
3 |
| - .row.no-margin-bottom |
4 |
| - .col.s12 |
5 |
| - p.flow-text.no-margin |
6 |
| - b = contribution.title |
7 |
| - p.no-margin |
8 |
| - ' proposed by |
9 |
| - => link_to profile_path(contribution.creator) |
10 |
| - = contribution.creator.name |
11 |
| - | · |
12 |
| - =<> time_ago_in_words(contribution.created_at) |
13 |
| - | ago |
14 |
| - - if contribution.accepted? |
15 |
| - = ' ' |
16 |
| - | · accepted |
| 2 | + .container |
| 3 | + .row.no-margin-bottom |
| 4 | + .col.s12 |
| 5 | + p.flow-text.no-margin |
| 6 | + b = contribution.title |
| 7 | + p.no-margin |
| 8 | + ' proposed by |
| 9 | + => link_to profile_path(contribution.creator) |
| 10 | + = contribution.creator.name |
| 11 | + | · |
| 12 | + =<> time_ago_in_words(contribution.created_at) |
| 13 | + | ago |
| 14 | + - if contribution.accepted? |
| 15 | + = ' ' |
| 16 | + | · accepted |
17 | 17 |
|
18 |
| - div.tabs.static.no-margin-top |
19 |
| - div.tab |
20 |
| - = link_to 'Discussion', profile_project_contribution_path(project.owner, project, contribution), |
21 |
| - class: ('active' if active_tab == :discussion) |
22 |
| - div.tab |
23 |
| - = link_to 'Files', profile_project_contribution_root_folder_path(project.owner, project, contribution), |
24 |
| - class: ('active' if active_tab == :files) |
25 |
| - div.tab |
26 |
| - = link_to 'Review', profile_project_contribution_review_path(project.owner, project, contribution), |
27 |
| - class: ('active' if active_tab == :review) |
28 |
| - - if contribution.files.root&.link_to_remote.present? |
| 18 | + div.tabs.static.no-margin-top |
29 | 19 | div.tab
|
30 |
| - = link_to contribution.files.root.link_to_remote, target: '_blank' do |
31 |
| - svg style="width:24px;height:24px" viewBox="0 0 24 24" class="left" |
32 |
| - 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" |
33 |
| - | Open in Drive |
34 |
| - end |
| 20 | + = link_to 'Discussion', profile_project_contribution_path(project.owner, project, contribution), |
| 21 | + class: ('active' if active_tab == :discussion) |
| 22 | + div.tab |
| 23 | + = link_to 'Files', profile_project_contribution_root_folder_path(project.owner, project, contribution), |
| 24 | + class: ('active' if active_tab == :files) |
| 25 | + div.tab |
| 26 | + = link_to 'Review', profile_project_contribution_review_path(project.owner, project, contribution), |
| 27 | + class: ('active' if active_tab == :review) |
| 28 | + - if contribution.files.root&.link_to_remote.present? |
| 29 | + div.tab |
| 30 | + = link_to contribution.files.root.link_to_remote, target: '_blank' do |
| 31 | + svg style="width:24px;height:24px" viewBox="0 0 24 24" class="left" |
| 32 | + 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" |
| 33 | + | Open in Drive |
0 commit comments