Skip to content

Commit

Permalink
template: only show the first 25 releases in "Releases Table"
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed May 6, 2020
1 parent cf0eb7d commit a73822e
Show file tree
Hide file tree
Showing 7 changed files with 228 additions and 54 deletions.
124 changes: 124 additions & 0 deletions cove_ocds/fixtures/30_releases.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"releases": [
{
"ocid": "ocds-example-1",
"id": "ocds-example-1-1"
},
{
"ocid": "ocds-example-1",
"id": "ocds-example-1-2"
},
{
"ocid": "ocds-example-1",
"id": "ocds-example-1-3"
},
{
"ocid": "ocds-example-1",
"id": "ocds-example-1-4"
},
{
"ocid": "ocds-example-1",
"id": "ocds-example-1-5"
},
{
"ocid": "ocds-example-2",
"id": "ocds-example-2-1"
},
{
"ocid": "ocds-example-2",
"id": "ocds-example-2-2"
},
{
"ocid": "ocds-example-2",
"id": "ocds-example-2-3"
},
{
"ocid": "ocds-example-2",
"id": "ocds-example-2-4"
},
{
"ocid": "ocds-example-2",
"id": "ocds-example-2-5"
},
{
"ocid": "ocds-example-3",
"id": "ocds-example-3-1"
},
{
"ocid": "ocds-example-3",
"id": "ocds-example-3-2"
},
{
"ocid": "ocds-example-3",
"id": "ocds-example-3-3"
},
{
"ocid": "ocds-example-3",
"id": "ocds-example-3-4"
},
{
"ocid": "ocds-example-3",
"id": "ocds-example-3-5"
},
{
"ocid": "ocds-example-4",
"id": "ocds-example-4-1"
},
{
"ocid": "ocds-example-4",
"id": "ocds-example-4-2"
},
{
"ocid": "ocds-example-4",
"id": "ocds-example-4-3"
},
{
"ocid": "ocds-example-4",
"id": "ocds-example-4-4"
},
{
"ocid": "ocds-example-4",
"id": "ocds-example-4-5"
},
{
"ocid": "ocds-example-5",
"id": "ocds-example-5-1"
},
{
"ocid": "ocds-example-5",
"id": "ocds-example-5-2"
},
{
"ocid": "ocds-example-5",
"id": "ocds-example-5-3"
},
{
"ocid": "ocds-example-5",
"id": "ocds-example-5-4"
},
{
"ocid": "ocds-example-5",
"id": "ocds-example-5-5"
},
{
"ocid": "ocds-example-6",
"id": "ocds-example-6-1"
},
{
"ocid": "ocds-example-6",
"id": "ocds-example-6-2"
},
{
"ocid": "ocds-example-6",
"id": "ocds-example-6-3"
},
{
"ocid": "ocds-example-6",
"id": "ocds-example-6-4"
},
{
"ocid": "ocds-example-6",
"id": "ocds-example-6-5"
}
]
}
48 changes: 27 additions & 21 deletions cove_ocds/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-02-26 08:10+0000\n"
"POT-Creation-Date: 2020-05-06 10:17+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -23,7 +23,7 @@ msgstr ""

#: cove_ocds/lib/exceptions.py:11 cove_ocds/lib/exceptions.py:31
#: cove_ocds/lib/exceptions.py:54 cove_ocds/lib/exceptions.py:74
#: cove_ocds/views.py:80 cove_ocds/views.py:98
#: cove_ocds/views.py:81 cove_ocds/views.py:99
msgid "Try Again"
msgstr ""

Expand Down Expand Up @@ -551,27 +551,27 @@ msgid "Records Table:"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_record.html:170
#: cove_ocds/templates/cove_ocds/explore_release.html:422
#: cove_ocds/templates/cove_ocds/explore_release.html:427
msgid "Explore your data:"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_record.html:175
#: cove_ocds/templates/cove_ocds/explore_release.html:427
#: cove_ocds/templates/cove_ocds/explore_release.html:432
msgid ""
"This section provides a visual representation of the data, use it to check "
"whether the data makes sense in the type of tool a user might use to explore "
"it."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_record.html:178
#: cove_ocds/templates/cove_ocds/explore_release.html:430
#: cove_ocds/templates/cove_ocds/explore_release.html:435
msgid ""
"Extensions and additional fields are hidden by default, click the 'Extra "
"fields' buttons or open the 'Extra fields' section to view them."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_record.html:181
#: cove_ocds/templates/cove_ocds/explore_release.html:433
#: cove_ocds/templates/cove_ocds/explore_release.html:438
msgid ""
"When viewing an OCDS record, use the numbers at the top of the visualization "
"to browse the change history. New and changed fields are highlighted, use "
Expand Down Expand Up @@ -837,55 +837,61 @@ msgstr ""
msgid "Releases Table:"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:348
#: cove_ocds/templates/cove_ocds/explore_release.html:346
msgid ""
"Showing the first 25 releases. To explore all your data in a tabular format, "
"convert it to a spreadsheet using the \"Convert\" section, above."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:353
msgid "Release Date"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:349
#: cove_ocds/templates/cove_ocds/explore_release.html:354
msgid "Tags"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:350
#: cove_ocds/templates/cove_ocds/explore_release.html:355
msgid "Descriptions"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:351
#: cove_ocds/templates/cove_ocds/explore_release.html:356
msgid "Purchasers"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:363
#: cove_ocds/templates/cove_ocds/explore_release.html:368
msgid "Tender Title:"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:366
#: cove_ocds/templates/cove_ocds/explore_release.html:371
msgid "Tender Description:"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:370
#: cove_ocds/templates/cove_ocds/explore_release.html:375
msgid "Tender Item Description:"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:375
#: cove_ocds/templates/cove_ocds/explore_release.html:380
msgid "Award Title:"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:378
#: cove_ocds/templates/cove_ocds/explore_release.html:383
msgid "Award Description:"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:383
#: cove_ocds/templates/cove_ocds/explore_release.html:388
msgid "Contract Title:"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:386
#: cove_ocds/templates/cove_ocds/explore_release.html:391
msgid "Contract Description:"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:394
#: cove_ocds/templates/cove_ocds/explore_release.html:399
msgid "Buyer:"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:400
#: cove_ocds/templates/cove_ocds/explore_release.html:405
msgid "Procuring Entity:"
msgstr ""

Expand Down Expand Up @@ -1127,11 +1133,11 @@ msgstr ""
msgid "Line:"
msgstr ""

#: cove_ocds/views.py:78 cove_ocds/views.py:96
#: cove_ocds/views.py:79 cove_ocds/views.py:97
msgid "Sorry, we can't process that data"
msgstr ""

#: cove_ocds/views.py:100
#: cove_ocds/views.py:101
msgid ""
"OCDS JSON should have an object as the top level, the JSON you supplied does "
"not."
Expand Down
Loading

0 comments on commit a73822e

Please sign in to comment.