Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3266)

Issue 8488045: Adds template helpers e.g. for pluralization.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by j.c.sackett
Modified:
11 years ago
Reviewers:
mp+157560, rharding, jeff.pihach
Visibility:
Public.

Description

Adds template helpers e.g. for pluralization. -Adds a pluralize template helper for pluralizing words based on length or size of an object or number passed in. -Adds a helper to handle the "no extra items" case for charm container, rather than an otherwise awkward attribute. -Adds tests -Updates code and templates. https://code.launchpad.net/~jcsackett/juju-gui/helpers-and-friends/+merge/157560 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Adds template helpers e.g. for pluralization. #

Total comments: 3

Patch Set 3 : Adds template helpers e.g. for pluralization. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -34 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M app/templates/charm-container.handlebars View 1 1 chunk +10 lines, -3 lines 0 comments Download
M app/templates/charm-token.handlebars View 1 1 chunk +2 lines, -2 lines 0 comments Download
M app/views/utils.js View 1 1 chunk +37 lines, -0 lines 0 comments Download
M app/widgets/charm-container.js View 1 2 7 chunks +19 lines, -23 lines 0 comments Download
M app/widgets/charm-token.js View 1 chunk +1 line, -0 lines 0 comments Download
M lib/views/browser/charm-container.less View 1 1 chunk +3 lines, -0 lines 0 comments Download
M test/test_charm_container.js View 1 2 2 chunks +7 lines, -4 lines 0 comments Download
M test/test_charm_token.js View 2 chunks +2 lines, -2 lines 0 comments Download
M test/test_utils.js View 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 7
j.c.sackett
Please take a look.
11 years ago (2013-04-07 19:37:48 UTC) #1
rharding
Some notes below. There's a bit too much dupe logic and I'd prefer if we ...
11 years ago (2013-04-07 19:59:29 UTC) #2
j.c.sackett
Please take a look.
11 years ago (2013-04-08 19:40:01 UTC) #3
j.c.sackett
I didn't address the needs to make design changes in this branch; I have a ...
11 years ago (2013-04-08 20:24:29 UTC) #4
rharding
LGTM thanks for the updates. Hopefully with the design changes coming it'll get even simpler.
11 years ago (2013-04-08 20:35:19 UTC) #5
jeff.pihach
LGTM That will be a nice helper to have going forward I'm sure. couple notes ...
11 years ago (2013-04-08 21:49:30 UTC) #6
j.c.sackett
11 years ago (2013-04-09 13:24:06 UTC) #7
*** Submitted:

Adds template helpers e.g. for pluralization.

-Adds a pluralize template helper for pluralizing words based on
length or size of an object or number passed in.
-Adds a helper to handle the "no extra items" case for charm container, rather
than an otherwise awkward attribute.
-Adds tests
-Updates code and templates.

R=rharding, jeff.pihach
CC=
https://codereview.appspot.com/8488045
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b