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
d060ec6b
Commit
d060ec6b
authored
Oct 01, 2020
by
Lakshit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply gl-button class to project/pages directory
parent
9ac5ac08
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
app/views/projects/pages/_destroy.haml
app/views/projects/pages/_destroy.haml
+1
-1
app/views/projects/pages/_list.html.haml
app/views/projects/pages/_list.html.haml
+2
-2
app/views/projects/pages/show.html.haml
app/views/projects/pages/show.html.haml
+1
-1
No files found.
app/views/projects/pages/_destroy.haml
View file @
d060ec6b
...
...
@@ -8,7 +8,7 @@
%p
=
s_
(
'GitLabPages|Removing pages will prevent them from being exposed to the outside world.'
)
.form-actions
=
link_to
s_
(
'GitLabPages|Remove pages'
),
project_pages_path
(
@project
),
data:
{
confirm:
s_
(
'GitLabPages|Are you sure?'
)},
method: :delete
,
class:
"btn btn-remove"
=
link_to
s_
(
'GitLabPages|Remove pages'
),
project_pages_path
(
@project
),
data:
{
confirm:
s_
(
'GitLabPages|Are you sure?'
)},
method: :delete
,
class:
"btn
gl-button
btn-remove"
-
else
.nothing-here-block
=
s_
(
'GitLabPages|Only project maintainers can remove pages'
)
app/views/projects/pages/_list.html.haml
View file @
d060ec6b
...
...
@@ -21,8 +21,8 @@
%span
.badge.badge-danger
=
s_
(
'GitLabPages|Expired'
)
%div
=
link_to
s_
(
'GitLabPages|Edit'
),
project_pages_domain_path
(
@project
,
domain
),
class:
"btn btn-sm btn-grouped btn-success btn-inverted"
=
link_to
s_
(
'GitLabPages|Remove'
),
project_pages_domain_path
(
@project
,
domain
),
data:
{
confirm:
s_
(
'GitLabPages|Are you sure?'
)},
method: :delete
,
class:
"btn btn-remove btn-sm btn-grouped"
=
link_to
s_
(
'GitLabPages|Edit'
),
project_pages_domain_path
(
@project
,
domain
),
class:
"btn
gl-button
btn-sm btn-grouped btn-success btn-inverted"
=
link_to
s_
(
'GitLabPages|Remove'
),
project_pages_domain_path
(
@project
,
domain
),
data:
{
confirm:
s_
(
'GitLabPages|Are you sure?'
)},
method: :delete
,
class:
"btn
gl-button
btn-remove btn-sm btn-grouped"
-
if
domain
.
needs_verification?
%li
.list-group-item.bs-callout-warning
-
details_link_start
=
"<a href='
#{
project_pages_domain_path
(
@project
,
domain
)
}
'>"
.
html_safe
...
...
app/views/projects/pages/show.html.haml
View file @
d060ec6b
...
...
@@ -5,7 +5,7 @@
=
s_
(
'GitLabPages|Pages'
)
-
if
can?
(
current_user
,
:update_pages
,
@project
)
&&
(
Gitlab
.
config
.
pages
.
external_http
||
Gitlab
.
config
.
pages
.
external_https
)
=
link_to
new_project_pages_domain_path
(
@project
),
class:
'btn btn-success float-right'
,
title:
s_
(
'GitLabPages|New Domain'
)
do
=
link_to
new_project_pages_domain_path
(
@project
),
class:
'btn
gl-button
btn-success float-right'
,
title:
s_
(
'GitLabPages|New Domain'
)
do
=
s_
(
'GitLabPages|New Domain'
)
%p
.light
...
...
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