Skip to content

Commit

Permalink
New "Add item" button at top of wishlist page (#148)
Browse files Browse the repository at this point in the history
* docs(contributor): contrib-readme-action has updated readme

* add item button

* Move an item to bottom of the list (#141)

* docs(contributor): contrib-readme-action has updated readme

* Move item to bottom of list

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* docs(contributor): contrib-readme-action has updated readme

* Set location of PouchDB log file with environment variable. (#93)

* Set location of PouchDB log file with environment variable.

* Use config system

* Use config system

---------

Co-authored-by: Wingy <[email protected]>

* docs(contributor): contrib-readme-action has updated readme

* The Dockerfile didn't wok for me, here's a fix (#145)

* Added automation to keep contributers section current

* Updated README.md to use new automation to keep contributers current

* changed branch name

* fix: Added backslashes and typescript install to Dockerfile

* fix: Dockerfile, allow changes to be applied

---------

Co-authored-by: jskidie <[email protected]>

* docs(contributor): contrib-readme-action has updated readme

* docs(contributor): contrib-readme-action has updated readme

* add localization

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ben Siddans <[email protected]>
Co-authored-by: Wingy <[email protected]>
Co-authored-by: jskiddie <[email protected]>
Co-authored-by: jskidie <[email protected]>
  • Loading branch information
6 people authored Dec 31, 2024
1 parent 7ee994b commit 287a57e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ Hi, I'm Wingy. I made this app. My website is [samwing.dev](https://samwing.dev)
<table>
<tr>
<td align="center">
<a href="https://github.com/Wingysam">
<img src="https://avatars.githubusercontent.com/u/18403742?v=4" width="100;" alt="Wingysam"/>
<a href="https://github.com/cj13579">
<img src="https://avatars.githubusercontent.com/u/1965454?v=4" width="100;" alt="cj13579"/>
<br />
<sub><b>Wingysam</b></sub>
<sub><b>cj13579</b></sub>
</a>
</td></tr>
</table>
Expand Down
1 change: 1 addition & 0 deletions src/languages/en-us.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export const strings = {
<span>Latest: ${latest}</span>
<span class="has-text-info" style="float: right;">This message is only visible to admins</span>`,
WISHLIST_ADD: 'Add item to wishlist',
WISHLIST_ADD_NEW: 'Add item',
WISHLIST_ADDED_BY_USER: addedBy => `Added by: ${addedBy}`,
WISHLIST_ADDED_BY: 'Added By',
WISHLIST_ADDED_ITEM_TO_OWN_WISHLIST: 'Added item to wishlist.',
Expand Down
9 changes: 8 additions & 1 deletion src/views/wishlist.pug
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ block title
i.fas.fa-sync-alt
.level-item
span= lang('WISHLIST_TITLE', name)
.level-right
.level-item
a(href="#addWishlistItem").button.button.is-primary.is-rounded
span.icon
i.fas.fa-plus
span= lang('WISHLIST_ADD_NEW')


block content
script(type='data/user_id')= req.user._id
Expand Down Expand Up @@ -255,7 +262,7 @@ block content
.field.inline
.control.inline
input.inline.button(type='submit' value=lang('WISHLIST_MOVE_ITEM_BOTTOM'))
form(method='POST')
form(method='POST')#addWishlistItem
.field
label.label!=lang('WISHLIST_URL_LABEL')
.control.has-icons-left
Expand Down

0 comments on commit 287a57e

Please sign in to comment.