Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
logs-viewer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tools
logs-viewer
Commits
9239564c
Commit
9239564c
authored
Jun 05, 2016
by
Maxime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use tabs to display logs
parent
929bcebb
Pipeline
#107
passed with stage
in 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
8 deletions
+23
-8
logs_viewer/templates/logs_viewer/base.html
+3
-0
logs_viewer/templates/logs_viewer/detail.html
+20
-8
No files found.
logs_viewer/templates/logs_viewer/base.html
View file @
9239564c
<!DOCTYPE html>
<html>
<head>
<title>
LogsViewer
</title>
<link
rel=
"stylesheet"
href=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
integrity=
"sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7"
crossorigin=
"anonymous"
>
<script
src=
"https://code.jquery.com/jquery-2.2.4.min.js"
></script>
<script
src=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
integrity=
"sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS"
crossorigin=
"anonymous"
></script>
</head>
<body>
<nav
class=
"navbar navbar-default"
>
...
...
logs_viewer/templates/logs_viewer/detail.html
View file @
9239564c
...
...
@@ -3,14 +3,25 @@
{% block content %}
<h1>
{{ object.name}}
</h1>
<ul
class=
"nav nav-tabs"
role=
"tablist"
>
{% for log in logs %}
<li
role=
"presentation"
><a
href=
"#{{ log.name }}"
aria-controls=
"{{ log.name }}"
role=
"tab"
data-toggle=
"tab"
>
{{ log.name | capfirst }}
</a></li>
{% endfor %}
</ul>
<div
class=
"tab-content"
>
{% for log in logs %}
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
{{ log.path }}
</div>
<div
class=
"panel-body"
>
{% for line in log.content %}
<p>
{{ line }}
</p>
{% endfor %}
</div>
</div>
<div
role=
"tabpanel"
class=
"tab-pane"
id=
"{{ log.name }}"
>
{{ log.content }}
</div>
{% endfor %}
</div>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
$
(
'#myTabs a:first'
).
tab
(
'show'
);
$
(
'#tabs a'
).
click
(
function
(
e
)
{
e
.
preventDefault
();
$
(
this
).
tab
(
'show'
);
});
);
</script>
{% endblock content %}
\ No newline at end of file
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