Skip to content
Snippets Groups Projects
Commit cacb8c16 authored by Efthymia Bika's avatar Efthymia Bika
Browse files

Change activity tab appearance

parent 94eb1240
No related branches found
No related tags found
No related merge requests found
...@@ -93,8 +93,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. ...@@ -93,8 +93,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
.attr("class", "small-block-grid-4") .attr("class", "small-block-grid-4")
.attr("id", "backup_list"); .attr("id", "backup_list");
$.each(backups, function(i, backup) { $.each(backups, function(i, backup) {
var li = $("<li></li>") var li = $("<div></div>")
.attr("class", "clearfix backup-box") .attr("class", "backup-box")
.attr("id", "box_" + backup.name); .attr("id", "box_" + backup.name);
var a = $("<a>" + backup.cloud + "/" + backup.name + "</a>") var a = $("<a>" + backup.cloud + "/" + backup.name + "</a>")
.attr("href", "#") .attr("href", "#")
...@@ -129,8 +129,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. ...@@ -129,8 +129,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
if(typeof backup.last_status != 'undefined') { if(typeof backup.last_status != 'undefined') {
li.append("<br>"); li.append("<br>");
li.append("<br>"); li.append("<br>");
var status_p = $("<span>Status : " + var status_class = (backup.last_status == "Failed") ?
backup.last_status + "&nbsp;&nbsp;</span>"); "fail-span" : "succeed-span";
var status_p = $("<span>Status : <i class='" + status_class
+ "'> " + backup.last_status +
"</i>&nbsp;&nbsp;</span>");
li.append(status_p); li.append(status_p);
var loader = $("<i></i>") var loader = $("<i></i>")
.attr("class", "fa fa-spinner fa-pulse"); .attr("class", "fa fa-spinner fa-pulse");
...@@ -139,7 +142,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. ...@@ -139,7 +142,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
loader.hide(); loader.hide();
} }
} }
ul.append(li); var extLi = $("<li></li>");
extLi.append(li);
ul.append(extLi);
$("#backup-table").append(ul); $("#backup-table").append(ul);
}); });
......
...@@ -60,12 +60,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. ...@@ -60,12 +60,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
background: #146A84; background: #146A84;
} }
.backup-box { .backup-box {
border: 1px dotted #6e6e6e;
border-radius: 4px; border-radius: 4px;
min-height: 170px; min-height: 180px;
margin: 5px;
font-size: 14px; font-size: 14px;
word-break: break-all; word-break: break-all;
background: aliceblue;
padding: 10px;
} }
.selected-bar { .selected-bar {
background: #2BA6CB; background: #2BA6CB;
...@@ -129,3 +129,9 @@ body fieldset { ...@@ -129,3 +129,9 @@ body fieldset {
margin: 5px; margin: 5px;
padding: 5px; padding: 5px;
} }
.fail-span {
color: orangered;
}
.succeed-span {
color: forestgreen;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment