mysociety / whatdotheyknow-theme

The Alaveteli theme for WhatDoTheyKnow (UK)
http://www.whatdotheyknow.com/
MIT License
31 stars 26 forks source link

Present FOI & Transparency research papers on the front page #1433

Closed garethrees closed 1 year ago

garethrees commented 1 year ago

A specific of https://github.com/mysociety/whatdotheyknow-theme/issues/791.

95% of our users won't necessarily read the papers, but it shows that we're about more than just running a service.

Basically copy & paste of https://economicprinciples.org. Should be quite a quick win.

Screenshot 2022-10-04 at 17 23 21

The paper summaries can get quite long. We don't want to have to write lots of new content for updates, so I think just rendering the title and image is fine.

We should have a "Donate £10 to support our research or browse more" link at the end.

I don't think research.mysociety.org has a feed so we'd have to manually update them now and then, but that feels fine. Not worth a huge engineering effort as they're relatively low frequency. We can either just hard code the ones we want, or create a data structure and pick a random selection, along the lines of:

@research_articles = [
  { title: 'Improving oversight of Access to Information',
    url: 'https://research.mysociety.org/publications/improving-oversight' },
  # and so on…
]
<% @research_articles.sample(6).each do |article| %>
  <div class="research-article">
    <!-- … -->
  </div>
<% end %>
garethrees commented 1 year ago

Some relevant papers

There's also some WDTK-specific datasets.

lucascumsille commented 1 year ago

PR here: https://github.com/mysociety/whatdotheyknow-theme/pull/1542/files#