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

Link to version detail page from build detail page #3418

Merged
merged 1 commit into from
Dec 21, 2017

Conversation

humitos
Copy link
Member

@humitos humitos commented Dec 18, 2017

On a build detail page, link the version detail page that it's being built if the user is the admin of the project, otherwise just show the slug as usual.

Related to #3417

@@ -62,7 +63,11 @@

<div class="build-version">
<span class="build-version-slug">
{{ build.version.slug }}
{% if request.user|is_admin:project %}
<a href="{% url "project_version_detail" build.version.project.slug build.version.slug %}">{{ build.version.slug }}</a>
Copy link
Member

Choose a reason for hiding this comment

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

This should probably add an "Edit this version" link, not just link the actual version name.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I didn't know where/how to put to not break the style since the commit hash is already between parenthesis (and I like that) so, I was thinking on adding the "Edit this version" in the following line. What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

Example

0.14.4 (acbd8asd67a8761asvsd)
Edit this version

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer the text link actually. "Edit this version" is a verbose addition. I think working a button into the interface is adding another design pattern to track. I'd rather revisit this when we have a better idea of what design patterns we're using on these interfaces.

@humitos humitos force-pushed the humitos/build/link-version-detail branch from 508a7f0 to b3274fb Compare December 20, 2017 21:20
@humitos
Copy link
Member Author

humitos commented Dec 20, 2017

Marking this as blocked since we need to define the UI pattern for this first.

@humitos humitos added the Status: blocked Issue is blocked on another issue label Dec 20, 2017
@ericholscher
Copy link
Member

I think we should just merge it as is, and open another ticket for it. No reason to block this.

@ericholscher ericholscher merged commit 26102e0 into master Dec 21, 2017
@agjohnson agjohnson deleted the humitos/build/link-version-detail branch December 24, 2017 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: blocked Issue is blocked on another issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants