To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #271 (new enhancement)

Opened 22 months ago

Last modified 17 months ago

Admin Generator '# Results' needs to be contextual

Reported by: johnnyoffline Owned by: tboutell
Priority: major Milestone: 1.5.2
Component: apostrophePlugin Version: trunk
Keywords: Admin Generator Cc: johnnyoffline, rickybanister, geoffd, boutell, dordille, hillerj, agilbert
Symfony version: 1.4

Description (last modified by johnnyoffline) (diff)

We can do better than the word 'Results' – Results of what?

The word results should be contextual to the data it is representing. This can either come from a clever adaptation of a class name set in the Schema or a homemade generator.yml setting where we label the items.

Instead of 3 results, I want 3 Blog Posts, 3 Events, 3 Donkeys, 3 Iguanas, 3 Hot Moms.

Tom, I am assigning this to you because I think it has I18N implications.

Also, this radness would have to find its way into both the Apostrophe admin theme and the alt admin theme we are using to drive the new blog trunk.

<h6 class="a-admin-list-results">
  [?php echo format_number_choice('[0] no result|[1] 1 result|(1,+Inf] %1% results', array('%1%' => $pager->getNbResults()), $pager->getNbResults(), 'apostrophe') ?]
  [?php if ($pager->haveToPaginate()): ?]
    [?php // echo __('(page %%page%%/%%nb_pages%%)', array('%%page%%' => $pager->getPage(), '%%nb_pages%%' => $pager->getLastPage()), 'apostrophe') ?]
  [?php endif; ?]
</h6>

Three Results

Attachments

3-results.png Download (18.6 KB) - added by johnnyoffline 22 months ago.
Three Results

Change History

Changed 22 months ago by johnnyoffline

Three Results

Changed 22 months ago by johnnyoffline

  • description modified (diff)

Changed 21 months ago by boutell

  • milestone changed from 1.4 to 1.5

We're limping along great without it for 1.4

Changed 17 months ago by tboutell

  • owner changed from boutell to tboutell
Note: See TracTickets for help on using tickets.