Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IGWN Computing and Software
GraceDB
GraceDB Server
Commits
dbcd7434
Commit
dbcd7434
authored
15 years ago
by
Brian Moe
Browse files
Options
Downloads
Patches
Plain Diff
Added navbar to admin page
parent
f94eaa40
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gracedb/admin.py
+2
-1
2 additions, 1 deletion
gracedb/admin.py
static/css/admin-nav.css
+85
-0
85 additions, 0 deletions
static/css/admin-nav.css
templates/admin/base_site.html
+30
-0
30 additions, 0 deletions
templates/admin/base_site.html
with
117 additions
and
1 deletion
gracedb/admin.py
+
2
−
1
View file @
dbcd7434
#from gracedb.gracedb.models import Analysis, Group, User
from
models
import
Event
,
EventLog
,
User
from
models
import
Event
,
EventLog
,
User
,
Group
from
django.contrib
import
admin
#class AnalysisAdmin(admin.ModelAdmin):
...
...
@@ -9,4 +9,5 @@ from django.contrib import admin
admin
.
site
.
register
(
Event
)
admin
.
site
.
register
(
EventLog
)
admin
.
site
.
register
(
User
)
admin
.
site
.
register
(
Group
)
This diff is collapsed.
Click to expand it.
static/css/admin-nav.css
0 → 100644
+
85
−
0
View file @
dbcd7434
/* Nav */
#nav
{
margin
:
0
;
padding
:
0
;
background
:
#eee
;
/* Nav base color */
float
:
left
;
width
:
100%
;
border
:
1px
solid
#42432d
;
border-width
:
1px
1px
;
}
#nav
#nav-user
{
color
:
#000
;
background
:
#eee
;
/* Nav base color */
padding
:
4px
20px
4px
20px
;
float
:
right
;
width
:
auto
;
text-decoration
:
none
;
font
:
bold
1em
/
1em
Arial
,
Helvetica
,
sans-serif
;
text-transform
:
uppercase
;
text-shadow
:
2px
2px
2px
#555
;
}
#nav
li
{
display
:
inline
;
padding
:
0
;
margin
:
0
;
}
/*
#nav li:first-child a {
border-left:1px solid #42432d;
}
*/
#nav
a
:link
,
#nav
a
:visited
{
color
:
#000
;
background
:
#eee
;
/* Nav base color */
/* padding:20px 40px 4px 10px; */
padding
:
4px
20px
4px
20px
;
float
:
left
;
width
:
auto
;
border-right
:
1px
solid
#42432d
;
text-decoration
:
none
;
font
:
bold
1em
/
1em
Arial
,
Helvetica
,
sans-serif
;
text-transform
:
uppercase
;
text-shadow
:
2px
2px
2px
#555
;
}
#nav
a
:hover
{
/* color:#fff; / * Use if bg is dark */
background
:
#dce2ed
;
/* Nav hover color */
}
#home
#nav-home
a
,
#create
#nav-create
a
,
#search
#nav-search
a
,
#feeds
#nav-feeds
a
,
#about
#nav-about
a
,
#archive
#nav-archive
a
,
#lab
#nav-lab
a
,
#reviews
#nav-reviews
a
,
#contact
#nav-contact
a
{
background
:
#a9b0ba
;
/* Nav selected color */
/* color:#fff; / * Use if bg is dark */
text-shadow
:
none
;
}
#home
#nav-home
a
:hover
,
#create
#nav-create
a
,
#search
#nav-search
a
,
#feeds
#nav-feeds
a
,
#about
#nav-about
a
:hover
,
#archive
#nav-archive
a
:hover
,
#lab
#nav-lab
a
:hover
,
#reviews
#nav-reviews
a
:hover
,
#contact
#nav-contact
a
:hover
{
/* background:#e35a00; */
background
:
#a9b0ba
;
/* Nav selected color */
}
#nav
a
:active
{
/* background:#e35a00; */
background
:
#a9b0ba
;
/* Nav selected color */
color
:
#fff
;
}
This diff is collapsed.
Click to expand it.
templates/admin/base_site.html
0 → 100644
+
30
−
0
View file @
dbcd7434
{% extends "admin/base.html" %}
{% load i18n %}
{% block extrastyle %}
<link
rel=
"stylesheet"
href=
"/gracedb-static/css/admin-nav.css"
/>
{% endblock %}
{% block title %}{{ title }} | {% trans 'Django site admin' %}{% endblock %}
{% block branding %}
<h1
id=
"site-name"
>
{% trans 'Django administration' %}
</h1>
{% endblock %}
{% block nav-global %}
<!--
<span id="nav-home"><a href="{% url home %}">Home</a></span>
<span id="nav-search"><a href="{% url search %}">Search</a></span>
<span id="nav-create"><a href="{% url create %}">Create</a></span>
<span id="nav-feeds"><a href="{% url feeds %}">RSS</a></span>
{% if ligouser %}<div id="nav-user">Authenticated as: {{ ligouser.name }}</div>{% endif %}
-->
<ul
id=
"nav"
>
<li
id=
"nav-home"
><a
href=
"{% url home %}"
>
Home
</a></li>
<li
id=
"nav-search"
><a
href=
"{% url search %}"
>
Search
</a></li>
<li
id=
"nav-create"
><a
href=
"{% url create %}"
>
Create
</a></li>
<li
id=
"nav-feeds"
><a
href=
"{% url feeds %}"
>
RSS
</a></li>
{% if ligouser %}
<li
id=
"nav-user"
>
Authenticated as: {{ ligouser.name }}
</li>
{% endif %}
<ul>
{% endblock %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment