Skip to content

Commit

Permalink
Update pages and nest.json
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Sep 22, 2024
1 parent cf91563 commit 884fcf6
Show file tree
Hide file tree
Showing 3 changed files with 314,813 additions and 53,649 deletions.
11 changes: 8 additions & 3 deletions backend/apps/owasp/templates/search/issue.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,13 @@ <h6>
<button v-if="issue.idx_summary || issue.idx_hint"
type="button"
@click="showIssueDetails(issue)"
data-bs-toggle="modal"
data-bs-target="#detailsModal"
data-bs-toggle="tooltip"
data-bs-placement="right"
class="mt-3 btn btn-outline-primary btn-sm inline-block float-end"
style="text-decoration: none">Read more</button>
style="text-decoration: none">
<i class="fa-solid fa-wand-magic-sparkles"></i>
Read more
</button>
</div>
<div class="row"></div>
<div id="idx_languages">
Expand Down Expand Up @@ -215,6 +218,8 @@ <h5>How to tackle it</h5>
});
},
showIssueDetails(issue) {
const detailsModal = new bootstrap.Modal(document.getElementById('detailsModal'));
detailsModal.show();
this.selectedIssue = issue;
},
handleInput(event) {
Expand Down
14 changes: 14 additions & 0 deletions backend/apps/owasp/templates/search/project.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,16 @@ <h4 class="px-1">
</div>
<div id="idx_summary" class="mb-1">
<div v-html="project.summary"></div>
<button type="button"
data-bs-toggle="tooltip"
data-bs-placement="right"
@click="contribute(project.idx_name)"
class="mt-3 btn btn-outline-primary btn-sm inline-block float-end"
style="text-decoration: none"
:title="`Contribute to ${project.idx_name}`">
<i class="fa-solid fa-code"></i>
Contribute
</button>
</div>
<div class="row"></div>
<div id="idx_topics">
Expand Down Expand Up @@ -214,6 +224,10 @@ <h4 class="px-1">
new bootstrap.Tooltip(tooltipTriggerEl);
});
},
contribute(projectName) {
window.open(`/projects/contribute?q=${projectName}`, '_blank');

},
removeTooltips() {
const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
tooltipTriggerList.forEach(function(tooltipTriggerEl) {
Expand Down
Loading

0 comments on commit 884fcf6

Please sign in to comment.