Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
uses: docker/metadata-action@f3c886e26b64d7e5ef5ff5f574efc88b317b8451
with:
images: gitlab-registry.enecuum.com/reg/node-corp-site/${{ github.event.repository.name }}
tags: type=sha,prefix={{branch}}-
tags: |
type=sha,prefix={{branch}}-,event=branch
type=ref,suffix=-{{sha}},event=pr

- name: Build and push
id: docker_build
Expand Down
34 changes: 34 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,40 @@ hbs.registerHelper('if_eq', function(a, b, opts) {
}
});

hbs.registerHelper('getRedditLink', function(entityId) {
let id = entityId.replace('#','');
return `https://www.reddit.com/r/EnecuumDev/search?q=%22%23${id}%22&restrict_sr=true&sort=relevance`
});

hbs.registerHelper('getEpicReadiness', function(storiesArray) {
let readiness = 0;
if (storiesArray.length > 0) {
let totalReadiness = 0;
storiesArray.forEach(function(story) {
totalReadiness += story.readiness;
});
readiness = totalReadiness/storiesArray.length;
}

return readiness == 100 ? 'Done' : `${readiness.toFixed(0)}%`
});

hbs.registerHelper('getTaskStatus', function(status) {
let statusStr = 'N/A';
switch (status) {
case "todo":
statusStr = 'ToDo';
break;
case "wip":
statusStr = 'WIP';
break;
case "done":
statusStr = 'Done';
break;
}
return statusStr
});

hbs.registerHelper('tradingViewWidget', function(lang = 'en') {
let suffix = '';
switch (lang) {
Expand Down
55 changes: 32 additions & 23 deletions assets/css/enq.css
Original file line number Diff line number Diff line change
Expand Up @@ -1200,32 +1200,13 @@ table.table-to-cards .scope-col {
font-size: 15px;
border-bottom: 2px dotted #e7eaf3;
font-weight: bolder;
padding-right: 50px;
margin-bottom: 1rem;
}

.roadmap-content .card-header>h5 {
position: relative;
}

.roadmap-content .card-header>h5:after,
.roadmap-content .roadmap-subtask ul>li:after {
display: block;
content: "0%";
position: absolute;
right: 0px;
color: #888;
font-size: 17px;
}

.roadmap-content .card-header>h5:after {
bottom: 0px;
}

.roadmap-content .roadmap-subtask ul>li:after {
bottom: 2px;
}

.roadmap-content .card-header>h5>button {
padding: 0px;
border: none;
Expand Down Expand Up @@ -1254,10 +1235,9 @@ table.table-to-cards .scope-col {
padding-left: 70px;
}

.roadmap-content #roadmapAccordionY2022 .card .card-header h5 .btn-link {
.roadmap-content #roadmapAccordion2022 .card .card-header h5 .btn-link {
color: inherit;
text-align: start;
padding-right: 50px;
}

.roadmap-content .tasks-card .card-header [data-toggle="collapse"][aria-expanded="false"].btn-link:before {
Expand All @@ -1266,7 +1246,7 @@ table.table-to-cards .scope-col {
position: absolute;
left: -15px;
color: #000;
top: 4px;
top: 0px;
font-size: 17px;
font-weight: bold;
}
Expand All @@ -1277,7 +1257,7 @@ table.table-to-cards .scope-col {
position: absolute;
left: -15px;
color: #000;
top: 4px;
top: 0px;
font-size: 17px;
font-weight: bold
}
Expand Down Expand Up @@ -1385,4 +1365,33 @@ table.table-to-cards .scope-col {
bottom: 0;
left: 0;
right: 0;
}

.roadmap-item-readiness {
flex-grow: 0;
flex-shrink: 0;
flex-basis: 4.5rem;
width: 4.5rem;
text-align: right;
color: #888;
font-size: 18px!important;
font-weight: normal!important;
}

.roadmap-item-external-link .conf-direct-link {
font-size: 1rem;
}

.roadmap-content a .fa-reddit,
.roadmap-content .fa-reddit:hover {
font-size: 1.5rem;
color: #377dff;
}

.roadmap-content a .fa-reddit {
opacity: 0.7;
}

.roadmap-content .fa-reddit:hover {
opacity: 1;
}
Loading