digital-york / oasis

Open Accessible Summaries In Language Studies
https://oasis-database.org
1 stars 0 forks source link

Feature - Add download stats tally at home page #442

Closed paluchas closed 1 year ago

paluchas commented 1 year ago

Resolves LAN-35

_download_statshelper.rb - add helper method to get total downloads count

index.html.erb - render download stats view on homepage

_downloadstats.erb - add view to display total downloads count

_homepagecontroller.rb - add total downloads count to homepage

WIP generation of download_stats.json file. This will be part of cron task that will run python script using google-analytics-data library. The script will be using credentials generated via Google Cloud console and saved as credentials.json file. All must be deployed to staging/production server.

paluchas commented 1 year ago

Screenshot 2023-06-22 at 19 26 26

IAlferink commented 1 year ago

Hi Sebastian,

Can it be something more like this: image

paluchas commented 1 year ago

@IAlferink here is a screenshot with updated style and location of download content. You can also see it on test server.

Screenshot 2023-07-10 at 15 20 09

IAlferink commented 1 year ago

Looks good. I'm happy with that. Inge

On Mon, 10 Jul 2023 at 15:21, Sebastian Pałucha @.***> wrote:

@IAlferink https://github.com/IAlferink here is a screenshot with updated style and location of download content. You can also see it on test server.

[image: Screenshot 2023-07-10 at 15 20 09] https://user-images.githubusercontent.com/1863245/252369127-1983a325-0de7-42b4-bc0a-b1882cc2bc5c.png

— Reply to this email directly, view it on GitHub https://github.com/digital-york/oasis/pull/442#issuecomment-1629078718, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWZDRFLP2P35RXMSKURD5LXPQFVNANCNFSM6AAAAAAZQU7GME . You are receiving this because you were mentioned.Message ID: @.***>

-- Dr Inge Alferink (she / her) [image: A button with "Hear my name" text for name playback in email signature] https://www.name-coach.com/inge-alferink

Open Accessible Summaries in Language Studies (OASIS https://oasis-database.org/?locale=en)

Email: @.***

Working pattern: Mon - Thu (09:15 - 15:15)

https://www.york.ac.uk/education/

e-mail disclaimer http://www.york.ac.uk/docs/disclaimer/email.htm