Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
warm_city
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mykhailo Makohin
warm_city
Commits
70d5dd0b
Commit
70d5dd0b
authored
Oct 22, 2019
by
Mykhailo Makohin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some fix on project show page
parent
3ec74dcb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
project_partials_service.rb
app/services/project_partials_service.rb
+2
-2
_description.html.haml
app/views/projects/_description.html.haml
+0
-0
_project_qoutes.html.haml
app/views/projects/_project_qoutes.html.haml
+0
-0
show.html.haml
app/views/projects/show.html.haml
+5
-3
No files found.
app/services/project_partials_service.rb
View file @
70d5dd0b
...
...
@@ -5,9 +5,9 @@ class ProjectPartialsService
end
def
params_project_partial
[{
title:
'
project_
description'
,
position:
0
},
[{
title:
'description'
,
position:
0
},
{
title:
'project_galeries'
,
position:
1
},
{
title:
'project_q
uo
tes'
,
position:
2
},
{
title:
'project_q
ou
tes'
,
position:
2
},
{
title:
'project_videos'
,
position:
3
},
{
title:
'project_photos'
,
position:
4
},
{
title:
'project_links'
,
position:
5
},
...
...
app/views/projects/_
project_
description.html.haml
→
app/views/projects/_description.html.haml
View file @
70d5dd0b
File moved
app/views/projects/_project_q
uo
tes.html.haml
→
app/views/projects/_project_q
ou
tes.html.haml
View file @
70d5dd0b
File moved
app/views/projects/show.html.haml
View file @
70d5dd0b
...
...
@@ -17,6 +17,8 @@
.project_content
.container
%div
.project_partials
-
@project
.
project_partials
.
order
(
:position
).
each_with_index
do
|
id
,
val
|
-
if
@project
.
val
=
render
"
#{
project_partial
.
title
}
"
-
@project
.
project_partials
.
order
(
:position
).
each
do
|
project_partial
|
-
if
@project
.
send
(
"
#{
project_partial
.
title
}
"
).
present?
%ul
%li
=
render
"
#{
project_partial
.
title
}
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment