GlobaLeaks
GlobaLeaks copied to clipboard
Make the Whistleblower aware that Tip will expire
It has been noted by UX consultant that the Whistleblower is not informed about the fact that the Tip will expire and will self-delete.
This ticket is to inform the Whistleblower that the Tip will self-destroy after a defined amount of day.
The current expiration indicator on Tip page should report the amount of days missing till the expiry of the Tip, likely with some graphical element support.
I was interested in working on this - I got a basic timer visible on the whistleblower tip page (see commit), but ran into three issues I'm not sure how you'd solve:
- how to display the remaining time on the page (currently have it as red text under the expiration date)
- adding "minutes", "hours", "days" to translatable strings
- the message should be on the submission receipt page, too, but not sure how to access
current_context.tip_timetolive
on that page
well done @mapmeld also this patch is great!
i was wondering to to use the library angular-relative-date integrating it with angular-translate, and i've seen that you have performed exactly that! (https://github.com/wildlyinaccurate/angular-relative-date/issues/3)
the only problem that remain is related to the different grammar in different languages (look at the ticket)
i will now integrate your code in a new branch related to your feature, an i will push an additional commit guiding you on the things you are asking so that in the future you will know how to achieve them.
@evilaliv3 I worked with the developer of angular-relative-date to close that issue! If you add translations to that library or this one, I believe that it will work
oh! this sounds as a great work. tomorrow (today) i will work on this integration!