Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
baas
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
baas
Commits
cacb8c16
Commit
cacb8c16
authored
Feb 24, 2016
by
Efthymia Bika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change activity tab appearance
parent
94eb1240
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
baas/activity.html
baas/activity.html
+10
-5
baas/static/stylesheets/custom.css
baas/static/stylesheets/custom.css
+9
-3
No files found.
baas/activity.html
View file @
cacb8c16
...
...
@@ -93,8 +93,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
.
attr
(
"
class
"
,
"
small-block-grid-4
"
)
.
attr
(
"
id
"
,
"
backup_list
"
);
$
.
each
(
backups
,
function
(
i
,
backup
)
{
var
li
=
$
(
"
<
li></li
>
"
)
.
attr
(
"
class
"
,
"
clearfix
backup-box
"
)
var
li
=
$
(
"
<
div></div
>
"
)
.
attr
(
"
class
"
,
"
backup-box
"
)
.
attr
(
"
id
"
,
"
box_
"
+
backup
.
name
);
var
a
=
$
(
"
<a>
"
+
backup
.
cloud
+
"
/
"
+
backup
.
name
+
"
</a>
"
)
.
attr
(
"
href
"
,
"
#
"
)
...
...
@@ -129,8 +129,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
if
(
typeof
backup
.
last_status
!=
'
undefined
'
)
{
li
.
append
(
"
<br>
"
);
li
.
append
(
"
<br>
"
);
var
status_p
=
$
(
"
<span>Status :
"
+
backup
.
last_status
+
"
</span>
"
);
var
status_class
=
(
backup
.
last_status
==
"
Failed
"
)
?
"
fail-span
"
:
"
succeed-span
"
;
var
status_p
=
$
(
"
<span>Status : <i class='
"
+
status_class
+
"
'>
"
+
backup
.
last_status
+
"
</i> </span>
"
);
li
.
append
(
status_p
);
var
loader
=
$
(
"
<i></i>
"
)
.
attr
(
"
class
"
,
"
fa fa-spinner fa-pulse
"
);
...
...
@@ -139,7 +142,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
loader
.
hide
();
}
}
ul
.
append
(
li
);
var
extLi
=
$
(
"
<li></li>
"
);
extLi
.
append
(
li
);
ul
.
append
(
extLi
);
$
(
"
#backup-table
"
).
append
(
ul
);
});
...
...
baas/static/stylesheets/custom.css
View file @
cacb8c16
...
...
@@ -60,12 +60,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
background
:
#146A84
;
}
.backup-box
{
border
:
1px
dotted
#6e6e6e
;
border-radius
:
4px
;
min-height
:
170px
;
margin
:
5px
;
min-height
:
180px
;
font-size
:
14px
;
word-break
:
break-all
;
background
:
aliceblue
;
padding
:
10px
;
}
.selected-bar
{
background
:
#2BA6CB
;
...
...
@@ -129,3 +129,9 @@ body fieldset {
margin
:
5px
;
padding
:
5px
;
}
.fail-span
{
color
:
orangered
;
}
.succeed-span
{
color
:
forestgreen
;
}
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