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

feat(926): Display template namespace if it exists #299

Merged
merged 4 commits into from Jun 1, 2018
Merged

Conversation

tkyi
Copy link
Member

@tkyi tkyi commented Jun 1, 2018

Context

Should display namespace/name if namespace exists and is not "default". Also showing namespace and name in the template detail page now.

Objective

This PR should fix it so it still shows namespace and name.

Example with namespace:
screen shot 2018-05-31 at 5 24 27 pm

Example with default namespace:
screen shot 2018-05-31 at 5 24 13 pm

Related links

Related to screwdriver-cd/screwdriver#926

@@ -12,6 +12,12 @@ export default Route.extend({
templates.forEach((t) => {
if (!names[t.name]) {
names[t.name] = 1;
// construct full template name
t.fullName = t.name;
Copy link
Member

Choose a reason for hiding this comment

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

can we define this in a common place, second time this logic is repeated.

@@ -1,8 +1,8 @@
<article class="template">
<header>
{{#link-to "templates.detail" template.name}}<h4>{{template.name}}</h4>{{/link-to}}
{{#link-to "templates.detail" template.fullName}}<h4>{{template.fullName}}</h4>{{/link-to}}
Copy link
Member

Choose a reason for hiding this comment

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

an extra space

Copy link
Member

@minzcmu minzcmu left a comment

Choose a reason for hiding this comment

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

👍

@tkyi tkyi merged commit 7938f56 into master Jun 1, 2018
@tkyi tkyi deleted the namespace branch June 1, 2018 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants