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
5aeefc13
Commit
5aeefc13
authored
Nov 12, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix styling of mirror status
parent
80651c5a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
22 deletions
+17
-22
app/views/projects/mirrors/show.html.haml
app/views/projects/mirrors/show.html.haml
+14
-19
app/views/shared/_mirror_status.html.haml
app/views/shared/_mirror_status.html.haml
+3
-3
No files found.
app/views/projects/mirrors/show.html.haml
View file @
5aeefc13
-
page_title
"Mirror Repository"
.pull-right
-
if
@project
.
mirror_last_update_success?
Successfully updated
#{
time_ago_with_tooltip
(
@project
.
mirror_last_successful_update_at
)
}
.
%span
.prepend-left-10
=
render
"shared/mirror_update_button"
%h3
.page-title
Mirror Repository
.pull-right
=
render
"shared/mirror_update_button"
%p
.light
Set up your project to automatically have its branches and tags updated from an upstream repository every hour.
%hr
.clearfix
-
if
@project
.
mirror?
-
if
@project
.
updating_mirror?
.alert.alert-info
%p
The repository is being updated...
-
case
@project
.
mirror_last_update_status
-
when
:success
.alert.alert-success
%p
The repository was successfully updated
#{
time_ago_with_tooltip
(
@project
.
mirror_last_successful_update_at
)
}
.
-
when
:failed
.alert.alert-danger
%p
The repository failed to be updated
#{
time_ago_with_tooltip
(
@project
.
mirror_last_update_at
)
}
.
%pre
.prepend-top-10
-
if
@project
.
mirror_last_update_failed?
.panel.panel-danger
.panel-heading
The repository failed to update
#{
time_ago_with_tooltip
(
@project
.
mirror_last_update_at
)
}
.
-
if
@project
.
mirror_ever_updated_successfully?
Last successful update
#{
time_ago_with_tooltip
(
@project
.
mirror_last_successful_update_at
)
}
.
.panel-body
%pre
:preserve
#{
@project
.
import_error
.
try
(
:strip
)
}
-
if
@project
.
mirror_ever_updated_successfully?
.alert.alert-success
%p
The repository was last successfully updated
#{
time_ago_with_tooltip
(
@project
.
mirror_last_successful_update_at
)
}
.
=
form_for
@project
,
url:
namespace_project_mirror_path
(
@project
.
namespace
,
@project
),
html:
{
class:
'form-horizontal'
}
do
|
f
|
-
if
@project
.
errors
.
any?
.alert.alert-danger
...
...
app/views/shared/_mirror_status.html.haml
View file @
5aeefc13
...
...
@@ -2,9 +2,6 @@
-
when
:success
Updated
#{
time_ago_with_tooltip
(
@project
.
mirror_last_successful_update_at
)
}
.
-
when
:failed
-
if
@project
.
mirror_ever_updated_successfully?
Last successful update
#{
time_ago_with_tooltip
(
@project
.
mirror_last_successful_update_at
)
}
.
-
if
can?
(
current_user
,
:admin_project
,
@project
)
=
link_to
namespace_project_mirror_path
(
@project
.
namespace
,
@project
)
do
=
icon
(
"exclamation-triangle"
)
...
...
@@ -12,3 +9,6 @@
-
else
=
icon
(
"exclamation-triangle"
)
Failed to update
#{
time_ago_with_tooltip
(
@project
.
mirror_last_update_at
)
}
.
-
if
@project
.
mirror_ever_updated_successfully?
Last successful update
#{
time_ago_with_tooltip
(
@project
.
mirror_last_successful_update_at
)
}
.
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