Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mymusiclist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Brian Guadalupe
mymusiclist
Commits
865e0612
Commit
865e0612
authored
Oct 22, 2017
by
Gink
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds preliminary design
parent
925961d9
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
55 additions
and
11 deletions
+55
-11
.gitignore
.gitignore
+2
-0
db.sqlite3
db.sqlite3
+0
-0
mymusiclist.css
files/css/mymusiclist.css
+36
-1
base.html
templates/base.html
+10
-5
home.html
templates/home.html
+0
-1
logged_out.html
templates/logged_out.html
+3
-2
login.html
templates/login.html
+2
-2
signup.html
templates/signup.html
+2
-0
No files found.
.gitignore
View file @
865e0612
.DS_Store
*.pyc
*.sqlite
db.sqlite3
View file @
865e0612
No preview for this file type
files/css/mymusiclist.css
View file @
865e0612
.signup_form
{
color
:
black
;
}
#nav_bar
{
position
:
fixed
;
width
:
100vw
;
list-style-type
:
none
;
background-color
:
grey
;
overflow
:
hidden
;
margin
:
-15px
;
margin-top
:
-70px
;
padding
:
0px
;
height
:
50px
;
}
#nav_bar_items
{
float
:
left
;
display
:
block
;
color
:
white
;
font-size
:
20
;
padding
:
8px
10px
;
letter-spacing
:
3px
;
text-decoration
:
none
;
}
li
a
:hover
,
.active
{
background-color
:
black
;
}
body
{
color
:
red
;
color
:
white
;
margin
:
15px
;
margin-top
:
70px
;
background-image
:
url(/files/images/background.jpg)
;
background-position
:
left
top
;
background-size
:
cover
;
}
\ No newline at end of file
templates/base.html
View file @
865e0612
...
...
@@ -9,13 +9,18 @@
</head>
<body>
<header>
<h1>
MyMusicList
</h1>
{% if user.is_authenticated %}
Hi {{ user.username }}!
<a
href=
"{% url 'logout' %}"
>
logout
</a>
<ul
id=
'nav_bar'
>
<li
id=
'nav_bar_items'
><a
id=
'nav_bar_items'
href=
"/"
>
MyMusicList
</a></li>
<li
id=
'nav_bar_items'
><a
id=
'nav_bar_items'
href=
"/profile/{{user.username}}"
>
Hi, {{user.username}}
</a></li>
<li
id=
'nav_bar_items'
style=
"float:right"
><a
id=
'nav_bar_items'
href=
"{% url 'logout' %}"
>
Logout
</a></li>
</ul>
{% else %}
<a
href=
"{% url 'login' %}"
>
login
</a>
<a
href=
"{% url 'signup' %}"
>
sign up
</a>
<ul
id=
'nav_bar'
>
<li
id=
'nav_bar_items'
><a
id=
'nav_bar_items'
href=
"/"
>
MyMusicList
</a></li>
<li
id=
'nav_bar_items'
><a
id=
'nav_bar_items'
href=
"{% url 'login' %}"
>
Login
</a></li>
<li
id=
'nav_bar_items'
><a
id=
'nav_bar_items'
href=
"{% url 'signup' %}"
>
Sign Up
</a></li>
</ul>
{% endif %}
</header>
<main>
...
...
templates/home.html
View file @
865e0612
...
...
@@ -5,6 +5,5 @@
{% block content %}
<h2>
Home
</h2>
{% if user.is_authenticated %}
<a
href=
"/profile/{{user.username}}"
>
View your profile
</a>
{% endif %}
{% endblock %}
templates/logged_out.html
View file @
865e0612
...
...
@@ -4,6 +4,7 @@
{% block content %}
<h2>
Logged out
</h2>
<p>
You have been successfully logged out.
</p>
<p><a
href=
"{% url 'login' %}"
>
Log in
</a>
again.
</p>
<p>
You have been successfully logged out.
<br>
Please login again.
</p>
{% endblock %}
templates/login.html
View file @
865e0612
...
...
@@ -3,10 +3,10 @@
{% block title %}Login{% endblock %}
{% block content %}
<h2>
Login
</h2>
<h2
id=
'login_login'
>
Login
</h2>
<form
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
<button
type=
"submit"
>
Login
</button>
<button
type=
"submit"
id=
'login_submit'
>
Login
</button>
</form>
{% endblock %}
templates/signup.html
View file @
865e0612
...
...
@@ -2,9 +2,11 @@
{% block content %}
<h2>
Sign up
</h2>
<div
class=
'signup_form'
>
<form
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
<button
type=
"submit"
>
Sign up
</button>
</form>
</div>
{% endblock %}
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