Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
98facee5
Commit
98facee5
authored
Sep 22, 2018
by
edpibu
🚵🏻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added link to the switch on switch ports search results
parent
38e1cabd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
search/templates/search/index.html
search/templates/search/index.html
+1
-1
topologie/templates/topologie/aff_port.html
topologie/templates/topologie/aff_port.html
+5
-1
No files found.
search/templates/search/index.html
View file @
98facee5
...
...
@@ -59,7 +59,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endif %}
{% if ports %}
<h2>
{% trans "Results among ports" %}
</h2>
{% include "topologie/aff_port.html" with port_list=ports %}
{% include "topologie/aff_port.html" with port_list=ports
search=True
%}
{% endif %}
{% if switches %}
<h2>
{% trans "Results among switches" %}
</h2>
...
...
topologie/templates/topologie/aff_port.html
View file @
98facee5
...
...
@@ -46,7 +46,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</thead>
{% for port in port_list %}
<tr>
<td>
{{ port.port }}
</td>
{% if search %}
<td><a
href=
"{% url 'topologie:index-port' switchid=port.switch.id %}"
>
{{ port.port }}
</a></td>
{% else %}
<td>
{{ port.port }}
</td>
{% endif %}
<td>
{% if port.room %}
{{ port.room }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment