Commit 54ab9469 authored by Alexandr Musikhin's avatar Alexandr Musikhin 💡

added other icons

+ added tag icon
+ added close icon
parent 977cff02
Pipeline #110770602 passed with stage
in 28 seconds
......@@ -104,10 +104,12 @@
gitMoreElement.innerHTML += `<li class="list-group-item">${gitAboutElement}</li>`;
// activities
let plusIcon, branchIcon, trashIcon, commentIcon;
let plusIcon, branchIcon, tagIcon, trashIcon, banIcon, commentIcon;
plusIcon = `<i class="fas fa-plus-circle fa-fw text-success"></i>`;
branchIcon = `<i class="fas fa-code-branch fa-fw text-success"></i>`;
tagIcon = `<i class="fas fa-tag fa-fw text-success"></i>`;
trashIcon = `<i class="fas fa-trash-alt fa-fw text-danger"></i>`;
banIcon = `<i class="fas fa-ban fa-fw text-danger"></i>`;
commentIcon = `<i class="fas fa-comment-dots fa-fw text-muted"></i>`;
let eventid = [];
for (let activities of json_event) {
......@@ -127,6 +129,8 @@
case "pushed new":
if (activities.push_data.ref_type === "branch")
isStr = branchIcon;
if (activities.push_data.ref_type === "tag")
isStr = tagIcon;
else
isStr = plusIcon;
isStr += ` Created a ${activities.push_data.ref_type} `;
......@@ -155,7 +159,7 @@
url = activities.target_type.toLowerCase();
name = activities.target_type.toLowerCase();
}
isStr = `${trashIcon} Closed an <a href="${json_event_rep.web_url}/${url}/${activities.target_iid}">${name}</a> in ${repoURL}`;
isStr = `${banIcon} Closed an <a href="${json_event_rep.web_url}/${url}/${activities.target_iid}">${name}</a> in ${repoURL}`;
break;
case "accepted":
if (activities.target_type === 'MergeRequest') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment