Skip to content

Commit

Permalink
Add methodology badge - dashboard widget
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolachr committed Aug 8, 2024
1 parent 69b0cfd commit 204f46f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
31 changes: 22 additions & 9 deletions app/assets/stylesheets/tylium/modules/projects.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,28 +91,41 @@ body.projects {

.tasks {
.list-group-item {
border: none;
border: 1px solid $borderColor;
border-radius: 0.5rem;
margin-bottom: 1rem;
padding: 0;
padding: 1rem;

&:active, &:focus, &:hover {
background-color: $secondaryBgColor;
}

&:last-of-type {
margin-bottom: 0;
}

.list-group-item-action {
border: 1px solid $borderColor;
border-radius: 0.5rem;
display: flex;
padding: 1rem;
display: flex;
flex-direction: column;
padding-bottom: 1rem;

&:active, &:focus, &:hover {
background-color: $secondaryBgColor;
}

.badge {
width: fit-content;
padding: 0.313rem;
}

&:before {
border: 3px solid;
border-radius: 0.5rem 0 0 0.5rem;
bottom: 1px;
bottom: 0;
content: " ";
left: 1px;
left: 0;
position: absolute;
top: 1px;
top: 0;
}

&.green:before {
Expand Down
6 changes: 6 additions & 0 deletions app/views/projects/tasks/_summary.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,30 @@
<ul class="list-group tasks">
<li class="list-group-item">
<a href="#" class="list-group-item-action red">[OWASP Top 10] A2:2017 - Broken Authentication</a>
<span class="badge bg-primary">Simple OWASP checklist</span>
</li>
<li class="list-group-item">
<a href="#" class="list-group-item-action red">Step 1: Prepare the release notes</a>
<span class="badge bg-primary">Release Checklist</span>
</li>
<li class="list-group-item">
<a href="#" class="list-group-item-action red">[OWASP Top 10] A2:2017 - Broken Authentication</a>
<span class="badge bg-primary">Simple OWASP checklist</span>
</li>
</ul>
<h5 class="mb-2 mt-4">Next (3/40)</h5>
<ul class="list-group tasks">
<li class="list-group-item">
<a href="#" class="list-group-item-action orange">[OWASP Top 10] A3:2017 - Sensitive Data Exchange</a>
<span class="badge bg-primary">Simple OWASP checklist</span>
</li>
<li class="list-group-item">
<a href="#" class="list-group-item-action orange">[OWASP Top 10] A4:2017 - XML External Entities (XXE)</a>
<span class="badge bg-primary">Simple OWASP checklist</span>
</li>
<li class="list-group-item">
<a href="#" class="list-group-item-action yellow">Step 3: Deal with security advisories</a>
<span class="badge bg-primary">Release Checklist</span>
</li>
</ul>
</section>

0 comments on commit 204f46f

Please sign in to comment.