Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass component display name to Mako template #2401

Merged
merged 4 commits into from
Feb 3, 2014

Conversation

singingwolfboy
Copy link
Contributor

No description provided.

@andy-armstrong
Copy link
Contributor

👍 Looks great. As we just discussed, I think you need to handle the "Unnamed Component" logic too.

Given I am in Studio editing a new unit
When I add a "Text" "HTML" component
Then I see the display name is "Text"
When I change the display name to "I'm the Cuddliest!"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

problem-editor.py has methods for setting the display name and verifying the display name. Could you reconcile these methods and put them in a shared location?

@cahrens
Copy link

cahrens commented Feb 3, 2014

If display_name is None, perhaps use the category like I did for duplicate (also in item.py)? I don't think it is possible for the category to be None.

@marcotuts
Copy link
Contributor

PR now includes visual styling adjustments to component header.

@andy-armstrong
Copy link
Contributor

👍 This looks really nice with the new design.

@cahrens
Copy link

cahrens commented Feb 3, 2014

👍 Do we need anyone to review Marco's changes? Visually it looks good to me, though when your unit is Public it feels like there is a lot of empty white space at the top of the component (although I think this was the case before as well).

@marcotuts
Copy link
Contributor

@cahrens - Agreed with the empty white space at the top of the component looking a bit odd, but as this is still the case prior to my changes here, I opted to leave it for now. Hopeful the new container story will help with some of the padding oddness of this page.

singingwolfboy added a commit that referenced this pull request Feb 3, 2014
Pass component display name to Mako template
@singingwolfboy singingwolfboy merged commit 27b2ff7 into master Feb 3, 2014
@singingwolfboy singingwolfboy deleted the db/component-label-display-name branch February 3, 2014 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants