Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
1ba2f206
Commit
1ba2f206
authored
Sep 02, 2014
by
Jean Michel Rouly
Committed by
Chris Reffett
Sep 04, 2014
Browse files
Replaced navigation bar with bootstrapped navbar.
parent
07fefcd9
Changes
2
Hide whitespace changes
Inline
Side-by-side
go/go/templates/navbar.html
deleted
100644 → 0
View file @
07fefcd9
<p
id=
"tagline"
>
[
<a
href=
"{% url 'about' %}"
>
What is Go?
</a>
]
{% if user.is_authenticated %}
| [
<a
href=
"{% url 'my_links' %}"
>
My Links
</a>
]
{% if user.is_staff %}
| [
<a
href=
"{% url 'signup' %}"
>
User Registration
</a>
]
| [
<a
href=
"{% url 'adminpanel' %}"
>
Administration
</a>
]
{% endif %}
| [
<a
href=
"{% url 'go_logout' %}"
>
Log Out
</a>
]
{% else %}
| [
<a
href=
"{% url 'go_login' %}"
>
Log In
</a>
]
{% endif %}
</p>
go/go/templates/navigation.html
0 → 100644
View file @
1ba2f206
<div
class=
"navbar navbar-default"
>
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle"
data-toggle=
"collapse"
data-target=
".navbar-responsive-collapse"
>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
href=
"{% url 'index' %}"
>
Go
</a>
</div>
<div
class=
"navbar-collapse collapse navbar-responsive-collapse"
>
<ul
class=
"nav navbar-nav"
>
<li><a
href=
"{% url 'about' %}"
>
About
</a></li>
{% if user.is_authenticated %}
<li><a
href=
"{% url 'my_links' %}"
>
My Links
</a></li>
{% if user.is_staff %}
<li><a
href=
"{% url 'adminpanel' %}"
>
Administration
</a></li>
{% endif %}
<li><a
href=
"{% url 'go_logout' %}"
>
Log Out
</a></li>
{% else %}
<li><a
href=
"{% url 'go_login' %}"
>
Log In
</a></li>
{% endif %}
</ul>
<ul
class=
"nav navbar-nav navbar-right"
>
<li><a
href=
"#"
>
Link
</a></li>
<li
class=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
Dropdown
<b
class=
"caret"
></b></a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
Action
</a></li>
<li><a
href=
"#"
>
Another action
</a></li>
<li><a
href=
"#"
>
Something else here
</a></li>
<li
class=
"divider"
></li>
<li><a
href=
"#"
>
Separated link
</a></li>
</ul>
</li>
</ul>
</div>
</div>
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