-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dodanie sekcji o szablonach do scenariusza rozszerzonego Czat
- Loading branch information
Showing
21 changed files
with
276 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!-- czat/czat/templates/czat/baza.html --> | ||
{% load staticfiles %}<!DOCTYPE html> | ||
<html lang="pl"> | ||
<meta charset="utf-8" /> | ||
<head> | ||
<title>{% block tytul %} System wiadomości Czat {% endblock tytul %}</title> | ||
|
||
<link rel="stylesheet" type="text/css" href="{% static 'czat/css/style.css' %}" /> | ||
</head> | ||
<body> | ||
<h1>{% block naglowek %} Witaj w aplikacji Czat! {% endblock %}</h1> | ||
|
||
{% block komunikaty %} | ||
{% if messages %} | ||
<ul> | ||
{% for komunikat in messages %} | ||
<li>{{ komunikat|capfirst }}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block tresc %} {% endblock %} | ||
|
||
{% if user.is_authenticated %} | ||
{% block linkilog %} {% endblock %} | ||
<p><a href="{% url 'wyloguj' %}">Wyloguj się</a></p> | ||
{% else %} | ||
{% block linkizalog %} {% endblock %} | ||
{% endif %} | ||
|
||
{% block linki %} {% endblock %} | ||
|
||
<div id="obrazki"> | ||
<img src="{% static 'czat/img/python.png' %}" width="300" /> | ||
<img src="{% static 'czat/img/sqlite.png' %}" width="300" /> | ||
</div> | ||
</body> | ||
</html> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
<!-- czat/czat/templates/czat/index.html --> | ||
{% extends "czat/base.html" %} | ||
{% extends "czat/baza.html" %} | ||
|
||
{% block naglowek %}Witaj w aplikacji Czat!{% endblock naglowek %} | ||
{% block naglowek %}Witaj w aplikacji Czat!{% endblock %} | ||
|
||
{% block linkilog %} | ||
<p>Jesteś zalogowany jako {{ user.username }}.</p> | ||
<p><a href="{% url 'wiadomosc' %}">Dodaj wiadomość</a></p> | ||
<p><a href="{% url 'wiadomosci' %}">Lista wiadomości</a></p> | ||
{% endblock linkilog %} | ||
{% endblock %} | ||
|
||
{% block linkizalog %} | ||
<p><a href="{% url 'loguj' %}">Zaloguj się</a></p> | ||
<p><a href="{% url 'rejestruj' %}">Zarejestruj się</a></p> | ||
{% endblock linkizalog %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
body { | ||
margin: 1em; | ||
padding: 0; | ||
font-family: Helvetica, Arial, sans-serif; | ||
font-size: 12pt; | ||
background: lightgreen url('../img/django.png') no-repeat fixed top right; | ||
} | ||
a { text-decoration: none; } | ||
a:hover { text-decoration: underline; } | ||
a:visited { text-decoration: none; } | ||
.clearfix { | ||
clear: both; | ||
} | ||
h1 { font-size: 1.8em; font-weight: bold; margin-top: 20px;} | ||
h2 { font-size: 1.4em; font-weight: bold; margin-top: 20px;} | ||
p { font-szie: 1em; font-family: Arial, sans-serif; } | ||
.fr { float: right; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
body { | ||
margin: 1em; | ||
padding: 0; | ||
font-family: Helvetica, Arial, sans-serif; | ||
font-size: 12pt; | ||
background: lightgreen url('../img/django.png') no-repeat fixed top right; | ||
} | ||
a { text-decoration: none; } | ||
a:hover { text-decoration: underline; } | ||
a:visited { text-decoration: none; } | ||
.clearfix { | ||
clear: both; | ||
} | ||
h1 { font-size: 1.8em; font-weight: bold; margin-top: 20px;} | ||
h2 { font-size: 1.4em; font-weight: bold; margin-top: 20px;} | ||
p { font-szie: 1em; font-family: Arial, sans-serif; } | ||
.fr { float: right; } |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!-- czat/czat/templates/czat/baza.html --> | ||
{% load staticfiles %}<!DOCTYPE html> | ||
<html lang="pl"> | ||
<meta charset="utf-8" /> | ||
<head> | ||
<title>{% block tytul %} System wiadomości Czat {% endblock tytul %}</title> | ||
|
||
<link rel="stylesheet" type="text/css" href="{% static 'czat/css/style.css' %}" /> | ||
</head> | ||
<body> | ||
<h1>{% block naglowek %} Witaj w aplikacji Czat! {% endblock %}</h1> | ||
|
||
{% block komunikaty %} | ||
{% if messages %} | ||
<ul> | ||
{% for komunikat in messages %} | ||
<li>{{ komunikat|capfirst }}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block tresc %} {% endblock %} | ||
|
||
{% if user.is_authenticated %} | ||
{% block linkilog %} {% endblock %} | ||
<p><a href="{% url 'wyloguj' %}">Wyloguj się</a></p> | ||
{% else %} | ||
{% block linkizalog %} {% endblock %} | ||
{% endif %} | ||
|
||
{% block linki %} {% endblock %} | ||
|
||
<div class="fr"> | ||
<img src="{% static 'czat/img/python.png' %}" width="280" /> | ||
<img src="{% static 'czat/img/sqlite.png' %}" width="280" /> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
<!-- czat/czat/templates/czat/index.html --> | ||
{% extends "czat/base.html" %} | ||
{% extends "czat/baza.html" %} | ||
|
||
{% block naglowek %}Witaj w aplikacji Czat!{% endblock naglowek %} | ||
{% block naglowek %}Witaj w aplikacji Czat!{% endblock %} | ||
|
||
{% block linkilog %} | ||
<p>Jesteś zalogowany jako {{ user.username }}.</p> | ||
<p><a href="{% url 'wiadomosc' %}">Dodaj wiadomość</a></p> | ||
<p><a href="{% url 'wiadomosci' %}">Lista wiadomości</a></p> | ||
{% endblock linkilog %} | ||
{% endblock %} | ||
|
||
{% block linkizalog %} | ||
<p><a href="{% url 'loguj' %}">Zaloguj się</a></p> | ||
<p><a href="{% url 'rejestruj' %}">Zarejestruj się</a></p> | ||
{% endblock linkizalog %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.