-
-
Notifications
You must be signed in to change notification settings - Fork 362
Improvement on navigation across all views #4276
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
Open
veenone
wants to merge
1
commit into
kiwitcms:master
Choose a base branch
from
veenone:feat/navigation-improvements
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+232
−9
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| {% load i18n %} | ||
|
|
||
| <ul class="nav nav-tabs"> | ||
| <li {% if active_tab == "breakdown" %}class="active"{% endif %}> | ||
| <a href="{% url 'testing-breakdown' %}"> | ||
| <span class="fa fa-pie-chart"></span> {% trans "Breakdown" %} | ||
| </a> | ||
| </li> | ||
| <li {% if active_tab == "dashboard" %}class="active"{% endif %}> | ||
| <a href="{% url 'execution-dashboard' %}"> | ||
| <span class="fa fa-table"></span> {% trans "Dashboard" %} | ||
| </a> | ||
| </li> | ||
| <li {% if active_tab == "matrix" %}class="active"{% endif %}> | ||
| <a href="{% url 'testing-status-matrix' %}"> | ||
| <span class="fa fa-th"></span> {% trans "Matrix" %} | ||
| </a> | ||
| </li> | ||
| <li {% if active_tab == "trends" %}class="active"{% endif %}> | ||
| <a href="{% url 'testing-execution-trends' %}"> | ||
| <span class="fa fa-line-chart"></span> {% trans "Trends" %} | ||
| </a> | ||
| </li> | ||
| <li {% if active_tab == "health" %}class="active"{% endif %}> | ||
| <a href="{% url 'test-case-health' %}"> | ||
| <span class="fa fa-heartbeat"></span> {% trans "TestCase health" %} | ||
| </a> | ||
| </li> | ||
| </ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| {% load i18n %} | ||
|
|
||
| <ol class="breadcrumb"> | ||
| <li><a href="{% url 'core-views-index' %}">{% trans "Dashboard" %}</a></li> | ||
| <li><a href="{% url search_url %}">{{ search_label }}</a></li> | ||
| {% if current_view == "view" %} | ||
| <li class="active">{{ object_label }}{{ object.pk }}: {{ object }}</li> | ||
| {% elif current_view == "edit" %} | ||
| <li><a href="{% url view_url object.pk %}">{{ object_label }}{{ object.pk }}: {{ object }}</a></li> | ||
| <li class="active">{% trans "Edit" %}</li> | ||
| {% elif current_view == "new" %} | ||
| <li class="active">{% trans "New" %}</li> | ||
| {% endif %} | ||
| </ol> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| {% load i18n %} | ||
|
|
||
| <div class="well well-sm clearfix"> | ||
| <ul class="nav nav-pills pull-left"> | ||
| {% if view_url and object %} | ||
| <li {% if current_view == "view" %}class="active"{% endif %}> | ||
| <a href="{% url view_url object.pk %}"> | ||
| <span class="fa fa-eye"></span> {% trans "View" %} | ||
| </a> | ||
| </li> | ||
| {% endif %} | ||
|
|
||
| {% if edit_url and object %} | ||
| {% if edit_perm %} | ||
| <li {% if current_view == "edit" %}class="active"{% endif %}> | ||
| <a href="{% url edit_url object.pk %}"> | ||
| <span class="fa fa-pencil"></span> {% trans "Edit" %} | ||
| </a> | ||
| </li> | ||
| {% endif %} | ||
| {% endif %} | ||
|
|
||
| {% if new_url %} | ||
| {% if add_perm %} | ||
| <li {% if current_view == "new" %}class="active"{% endif %}> | ||
| <a href="{% url new_url %}"> | ||
| <span class="fa fa-plus"></span> {% trans "New" %} | ||
| </a> | ||
| </li> | ||
| {% endif %} | ||
| {% endif %} | ||
|
|
||
| {% if search_url %} | ||
| <li {% if current_view == "search" %}class="active"{% endif %}> | ||
| <a href="{% url search_url %}"> | ||
| <span class="fa fa-search"></span> {% trans "Search" %} | ||
| </a> | ||
| </li> | ||
| {% endif %} | ||
| </ul> | ||
|
|
||
| {% if show_actions and object %} | ||
| <ul class="nav nav-pills pull-right"> | ||
| {% if tc_clone %} | ||
| {% if add_perm %} | ||
| <li> | ||
| <a href="{% url 'testcases-clone' %}?c={{ object.pk }}" title="{% trans 'Clone' %}"> | ||
| <span class="fa fa-clone"></span> {% trans "Clone" %} | ||
| </a> | ||
| </li> | ||
| {% endif %} | ||
| {% elif clone_url %} | ||
| {% if add_perm %} | ||
| <li> | ||
| <a href="{% url clone_url object.pk %}" title="{% trans 'Clone' %}"> | ||
| <span class="fa fa-clone"></span> {% trans "Clone" %} | ||
| </a> | ||
| </li> | ||
| {% endif %} | ||
| {% endif %} | ||
|
|
||
| {% if admin_url_prefix and show_history %} | ||
| <li> | ||
| <a href="/admin/{{ admin_url_prefix }}/{{ object.pk }}/history/" title="{% trans 'History' %}"> | ||
| <span class="fa fa-history"></span> {% trans "History" %} | ||
| </a> | ||
| </li> | ||
| {% endif %} | ||
|
|
||
| {% if admin_perm %} | ||
| <li> | ||
| <a href="/admin/{{ admin_url_prefix }}/{{ object.pk }}/change/" title="{% trans 'Permissions' %}"> | ||
| <span class="fa fa-lock"></span> {% trans "Admin" %} | ||
| </a> | ||
| </li> | ||
| {% endif %} | ||
|
|
||
| {% if delete_perm %} | ||
| <li class="kiwi-pill-danger"> | ||
| <a href="/admin/{{ admin_url_prefix }}/{{ object.pk }}/delete/" title="{% trans 'Delete' %}"> | ||
| <span class="fa fa-trash-o"></span> {% trans "Delete" %} | ||
| </a> | ||
| </li> | ||
| {% endif %} | ||
| </ul> | ||
| {% endif %} | ||
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is something worth merging in, however some of the other changes probably won't (notably breadcrumbs have been explicitly removed in the past).
Please break this PR into individual ones - one per logical change so that they can be reviewed and commented on individually.