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
18f1c709
Commit
18f1c709
authored
Nov 23, 2017
by
Deion Menor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make homepage different for authenticated and non-authenticated users
parent
f4fcba5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
base.html
templates/base.html
+4
-2
home.html
templates/home.html
+11
-3
No files found.
templates/base.html
View file @
18f1c709
...
@@ -69,8 +69,9 @@
...
@@ -69,8 +69,9 @@
<div
class=
"w3-card-4 w3-black w3-opacity sidebar"
>
{% block sidebar %}
{% block sidebar %}
<div
class=
"w3-card-4 w3-black w3-opacity sidebar"
>
<h2>
Featured Songs
</h2>
<h2>
Featured Songs
</h2>
<img
src=
"/files/images/divide_edsheeran.jpeg"
alt=
"Divide - Ed Sheeran"
>
<img
src=
"/files/images/divide_edsheeran.jpeg"
alt=
"Divide - Ed Sheeran"
>
Divide - Ed Sheeran
Divide - Ed Sheeran
...
@@ -78,8 +79,9 @@
...
@@ -78,8 +79,9 @@
Palette - IU
Palette - IU
<img
src=
"/files/images/rockstar_postmalone21savage.jpeg"
alt=
"Rockstar"
>
<img
src=
"/files/images/rockstar_postmalone21savage.jpeg"
alt=
"Rockstar"
>
Rockstar
Rockstar
</div>
{% endblock %}
{% endblock %}
</div>
</header>
</header>
...
...
templates/home.html
View file @
18f1c709
...
@@ -9,6 +9,15 @@
...
@@ -9,6 +9,15 @@
{% block content %}
{% block content %}
{% if request.user.is_authenticated %}
<div
class=
"w3-panel w3-green w3-padding"
>
<h1
class=
"w3-text-white"
>
<b>
Welcome to MyMusicList
</b></h1>
</div>
{% else %}
<div
class=
"w3-display-container"
style=
"width:100em; height:50em;overflow:hidden;"
>
<div
class=
"w3-display-container"
style=
"width:100em; height:50em;overflow:hidden;"
>
<div
class=
"hero"
>
<div
class=
"hero"
>
...
@@ -65,7 +74,7 @@ MyMusicList is the answer.
...
@@ -65,7 +74,7 @@ MyMusicList is the answer.
</p>
</p>
</div>
</div>
</div>
</div>
<div
class=
"
main
"
>
<div
class=
""
>
<div
class=
"w3-row-padding w3-blue"
>
<div
class=
"w3-row-padding w3-blue"
>
...
@@ -126,6 +135,5 @@ Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculu
...
@@ -126,6 +135,5 @@ Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculu
<p>Footer information goes here</p>
<p>Footer information goes here</p>
</footer> -->
</footer> -->
{% if request.user.is_authenticated %}
{% endif %}
{% endif %}
{% endblock %}
{% 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