Skip to content

Commit

Permalink
Merge pull request #529 from RichDom2185/week13/style-ppp-issues-badge
Browse files Browse the repository at this point in the history
Add and style Issues badge for PPP
  • Loading branch information
RichDom2185 authored Nov 7, 2022
2 parents 4820eaf + 6b5174a commit e3b2830
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/_includes/icons/git-merge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions docs/_includes/icons/issue-closed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions docs/_includes/ppp-badges.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,23 @@
{%- for node in nodes offset:1 -%}
{% assign data = node | split: ']]' %}{% assign tag = data | first | strip | split: '#' %}{% assign type = tag | first | strip %}{% assign number = tag | last | strip %}
{%- if type == 'PR' -%}
<span class="pr-badge">
<span class="ppp-badge">
{% include icons/git-merge.svg class="icon" %}
<a href="https://github.com/{{ site.repository }}/pull/{{ number }}">PR#{{ number }}</a>
<a target="_blank" href="https://github.com/{{ site.repository }}/pull/{{ number }}">PR#{{ number }}</a>
<span class="tooltip"><strong>Pull Request</strong> #{{ number }}<br><small>View on GitHub</small></span>
</span>
{%- for tail in data offset:1 -%}
{{ tail }}
{%- endfor -%}
{% elsif type == 'Issue' %}
<span class="ppp-badge">
{% include icons/issue-closed.svg class="icon" %}
<a target="_blank" href="https://github.com/{{ site.repository }}/issues/{{ number }}">Issue#{{ number }}</a>
<span class="tooltip"><strong>Issue</strong> #{{ number }}<br><small>View on GitHub</small></span>
</span>
{%- for tail in data offset:1 -%}
{{ tail }}
{%- endfor -%}
{%-else -%}
[[{{ node }}
{%- endif -%}
Expand Down
2 changes: 1 addition & 1 deletion docs/_sass/ppp.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.pr-badge {
.ppp-badge {
$color: #8250df;
$border-color: #d0d7de;

Expand Down
10 changes: 5 additions & 5 deletions docs/team/yixiann.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ Given below are my contributions to the project.
* **Community**:

* Reported bugs and suggestions for other teams in the class:
* Stats command do not calculate amount wasted by performing qty * price [[Issue#449]] (https://github.com/AY2223S1-CS2103T-W16-2/tp/issues/449)
* Stats command expiry date do not count items that expire today [Issue#448](https://github.com/AY2223S1-CS2103T-W16-2/tp/issues/448)
* Stats command fail on FoodRem having less than 3 items [Issue#447](https://github.com/AY2223S1-CS2103T-W16-2/tp/issues/447)
* Rename tag does not modify tags in items [Issue#293](https://github.com/AY2223S1-CS2103T-W16-2/tp/issues/293)
* Rename tag to same name is possible [Issue#273](https://github.com/AY2223S1-CS2103T-W16-2/tp/issues/273)
* Stats command do not calculate amount wasted by performing qty * price [[Issue#449]]
* Stats command expiry date do not count items that expire today [[Issue#448]]
* Stats command fail on FoodRem having less than 3 items [[Issue#447]]
* Rename tag does not modify tags in items [[Issue#293]]
* Rename tag to same name is possible [[Issue#273]]

Other PRs:

Expand Down

0 comments on commit e3b2830

Please sign in to comment.