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
2045ecc1
Commit
2045ecc1
authored
Apr 06, 2021
by
Yogi
Committed by
Natalia Tepluhina
Apr 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add btn-default for mirror update button
parent
762e049d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
changelogs/unreleased/btn-default-mirror-update.yml
changelogs/unreleased/btn-default-mirror-update.yml
+5
-0
ee/app/views/shared/_mirror_update_button.html.haml
ee/app/views/shared/_mirror_update_button.html.haml
+4
-4
No files found.
changelogs/unreleased/btn-default-mirror-update.yml
0 → 100644
View file @
2045ecc1
---
title
:
Add btn-default for mirror update button
merge_request
:
57978
author
:
Yogi (@yo)
type
:
changed
ee/app/views/shared/_mirror_update_button.html.haml
View file @
2045ecc1
-
if
@project
.
mirror?
&&
can?
(
current_user
,
:push_code
,
@project
)
.gl-mb-3
-
if
@project
.
import_state
.
mirror_update_due?
%span
.btn.gl-button.disabled
%span
.btn.gl-button.
btn-default.
disabled
=
sprite_icon
(
'retry'
,
css_class:
'spin gl-mr-3'
)
=
(
'Update Scheduled…'
)
-
elsif
@project
.
import_state
.
updating_mirror?
%span
.btn.gl-button.disabled
%span
.btn.gl-button.
btn-default.
disabled
=
sprite_icon
(
'retry'
,
css_class:
'spin gl-mr-3'
)
=
(
'Updating…'
)
-
elsif
can?
(
current_user
,
:admin_project
,
@project
)
=
link_to
update_now_project_mirror_path
(
@project
),
method: :post
,
class:
'
btn
'
do
=
link_to
update_now_project_mirror_path
(
@project
),
method: :post
,
class:
'
gl-button btn btn-default
'
do
=
sprite_icon
(
'retry'
,
css_class:
'gl-mr-3'
)
=
(
'Update Now'
)
-
else
%span
.btn.gl-button.disabled
%span
.btn.gl-button.
btn-default.
disabled
=
sprite_icon
(
'retry'
,
css_class:
'gl-mr-3'
)
=
(
'Update Now'
)
-
if
@project
.
mirror_last_update_succeeded?
...
...
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