Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KSZK
DevTeam
Archive
entries
Commits
76dc8159
Commit
76dc8159
authored
Apr 06, 2016
by
Barnabás Czémán
Browse files
Intial ukit design
parent
17f94d67
Changes
4
Hide whitespace changes
Inline
Side-by-side
bower.json
0 → 100644
View file @
76dc8159
{
"name"
:
"entries"
,
"authors"
:
[
"DevTeam"
],
"description"
:
""
,
"main"
:
""
,
"license"
:
"None"
,
"homepage"
:
""
,
"ignore"
:
[
"**/.*"
,
"node_modules"
,
"bower_components"
,
"test"
,
"tests"
]
}
entries/settings.py
View file @
76dc8159
...
...
@@ -108,4 +108,8 @@ LOGIN_URL = '/login/'
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.9/howto/static-files/
STATICFILES_DIRS
=
[
os
.
path
.
join
(
BASE_DIR
,
'bower_components'
)
]
STATIC_URL
=
'/static/'
templates/base.html
View file @
76dc8159
{% load staticfiles %}
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
...
...
@@ -6,27 +7,37 @@
{% endblock %}
<title>
{% block title %}Awsome entries{% endblock %}
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'uikit/css/uikit.almost-flat.min.css' %}"
/>
</head>
<body>
<h1>
Awsome entries!
</h1>
{% if user.is_authenticated %}
<p>
Hello, {{ user }}!
</p>
{% endif %}
<a
href=
"{% url 'home' %}"
>
Home
</a>
<nav
class=
"uk-navbar"
>
<ul
class=
"uk-navbar-nav"
>
<li><a
href=
"{% url 'home' %}"
class=
"uk-navbar-brand"
>
Free Entries
</a>
<li><a
href=
"{% url 'home' %}"
>
Home
</a></li>
{% if user.is_authenticated %}
<li><a
href=
"{% url 'create_entry' %}"
>
New entry
</a></li>
<li><a
href=
"{% url 'logout' %}"
>
Logout
</a></li>
{% else %}
<li><a
href=
"{% url 'login' %}"
>
Login
</a></li>
{% endif %}
</ul>
</nav>
{% if user.is_authenticated %}
<a
href=
"{% url 'create_entry' %}"
>
New entry
</a>
<a
href=
"{% url 'logout' %}"
>
Logout
</a>
{% else %}
<a
href=
"{% url 'login' %}"
>
Login
</a>
{% endif %}
<div
class=
"uk-alert uk-alert-success"
><p>
Hello, {{ user }}!
</p></div>
<hr>
{% endif %}
{% block content %}
{% endblock %}
<script
src=
"{% static 'jquery/dist/jquery.min.js' %}"
/>
<
script
src
=
"
{% static 'uikit/js/ukit.min.js' %}
"
/>
<
/body
>
</html>
\ No newline at end of file
<
/html
>
templates/index.html
View file @
76dc8159
...
...
@@ -4,21 +4,10 @@
Barni
{% endblock %}
{% block css %}
<style>
.entry
{
margin
:
15px
;
padding
:
5px
;
border
:
solid
1px
black
;
}
</style>
{% endblock %}
{% block content %}
{% for entry in entries %}
<div
class=
"
entry
"
>
<h3>
{{ entry.title }}
</h3>
<div
class=
"
uk-panel uk-panel-box uk-margin
"
>
<h3
class=
"uk-panel-title"
>
{{ entry.title }}
</h3>
<p>
{{ entry.description }}
</p>
<a
href=
"{{ entry.url }}"
>
Click!!
</a>
</div>
...
...
@@ -26,4 +15,4 @@ Barni
No entries.
{% endfor %}
{% endblock %}
\ No newline at end of file
{% endblock %}
Write
Preview
Supports
Markdown
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