Put "Download CSV" Button in AO3 Prompt Memes

Puts a "Download as CSV" button on the Prompts page of AO3 Prompt Memes.

ئاپتورى
JaneBuzJane
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
18
باھا نومۇرى
0 0 0
نەشرى
0.1
قۇرۇلغان ۋاقتى
2022-01-03
يېڭىلانغان ۋاقتى
2022-01-03
ئىجازەتنامىسى
MIT
قوللايدىغىنى

Description

I was browsing AO3's Jira for fixes/enhancements for prompt memes and found this funky little tidbit:

Screenshot of a conversation. Person A requests an Export CSV button for Prompt Memes on Archive of Our Own dot org. Person B indicates that the code already exists, but there is no button.

So I added a button for Prompt Meme administrators to download a CSV of the requests.

Caveats

  1. The CSV is really terrible. It uses AO3's existing framework, which for some reason lumps the ship tags into the "Additional Tags" column, and has unescaped HTML everywhere. I can't change this without making a pull request on Git and editing the code myself, which I am not qualified for lol. If you would like to do that, there are a ton of collection maintainers everywhere who'll be in your debt!

  2. If you aren't an administrator of the collection, you won't be allowed to download the CSV, though the button will appear. You'll get an error message (see photo 2).