Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
91f31ae5
Commit
91f31ae5
authored
Jun 11, 2018
by
Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix use template buttons for creating a new project
parent
7b7ba297
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
app/assets/stylesheets/bootstrap_migration.scss
app/assets/stylesheets/bootstrap_migration.scss
+4
-0
app/views/projects/_project_templates.html.haml
app/views/projects/_project_templates.html.haml
+12
-11
No files found.
app/assets/stylesheets/bootstrap_migration.scss
View file @
91f31ae5
...
@@ -293,3 +293,7 @@ input[type=color].form-control {
...
@@ -293,3 +293,7 @@ input[type=color].form-control {
color
:
$gl-text-color-secondary
;
color
:
$gl-text-color-secondary
;
}
}
}
}
.btn
{
margin-bottom
:
0
;
}
app/views/projects/_project_templates.html.haml
View file @
91f31ae5
...
@@ -10,16 +10,17 @@
...
@@ -10,16 +10,17 @@
%a
.btn.btn-default
{
href:
template
.
preview
,
rel:
'noopener noreferrer'
,
target:
'_blank'
}
Preview
%a
.btn.btn-default
{
href:
template
.
preview
,
rel:
'noopener noreferrer'
,
target:
'_blank'
}
Preview
.project-fields-form
.project-fields-form
.form-group
.row
%label
.label-light
.form-group.col-sm-12
Template
%label
.label-light
.input-group.template-input-group
Template
.input-group-prepend
.input-group.template-input-group
.input-group-text
.input-group-prepend
.selected-icon
.input-group-text
-
Gitlab
::
ProjectTemplate
.
all
.
each
do
|
template
|
.selected-icon
=
custom_icon
(
template
.
logo
)
-
Gitlab
::
ProjectTemplate
.
all
.
each
do
|
template
|
.selected-template
=
custom_icon
(
template
.
logo
)
%button
.btn.btn-default.change-template
{
type:
"button"
}
Change template
.selected-template
%button
.btn.btn-default.change-template
{
type:
"button"
}
Change template
=
render
'new_project_fields'
,
f:
f
,
project_name_id:
"template-project-name"
=
render
'new_project_fields'
,
f:
f
,
project_name_id:
"template-project-name"
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