-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
105 changed files
with
443 additions
and
170 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
[run] | ||
source = emoticons | ||
omit = emoticons/tests* | ||
source = emoticons | ||
omit = emoticons/tests* | ||
emoticons/demo/* | ||
|
||
[report] | ||
exclude_lines = | ||
exclude_lines = | ||
pragma: no cover | ||
show_missing = True |
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,7 @@ | ||
include README.rst | ||
include LICENSE.txt | ||
include versions.cfg | ||
include buildout.cfg | ||
include bootstrap.py | ||
recursive-include emoticons *.html | ||
recursive-include emoticons/static * |
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
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 @@ | ||
"""Demo of the emoticons app""" |
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,60 @@ | ||
{% load emoticons_tags %} | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="author" content="Fantomas42"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Django-Emoticons</title> | ||
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.min.css" rel="stylesheet"> | ||
<style type="text/css"> | ||
body { background-color: #eee; } | ||
.container .row div { background-color: white; } | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-6 col-md-offset-3"> | ||
{% emoticons %} | ||
<h1>Django-Emoticons<br /> | ||
<small>A usefull and incredible Django application that allow | ||
you to use <strong>emoticons</strong> in your templates :).</small> | ||
</h1> | ||
{% endemoticons %} | ||
<h2>Index of the emoticons</h2> | ||
{% emoticons_index as emoticons_list %} | ||
<table class="table table-striped table-bordered table-condensed table-hover"> | ||
<thead> | ||
<tr> | ||
<th class="text-center"> | ||
Emoticon | ||
</th> | ||
<th> | ||
Aliases | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for emoticons in emoticons_list %} | ||
<tr> | ||
<td class="text-center"> | ||
{{ emoticons.0|safe|emoticons }} | ||
</td> | ||
<td> | ||
{% for emoticon in emoticons %}<code>{{ emoticon }}</code> {% endfor %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
<footer> | ||
<p class="text-right"> | ||
Demo made by <a href="https://github.com/Fantomas42">Fantomas42</a>. | ||
</p> | ||
</footer> | ||
</div> | ||
</div> | ||
</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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"""Settings for the emoticons demo""" | ||
import os | ||
|
||
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
DEBUG = True | ||
TEMPLATE_DEBUG = DEBUG | ||
|
||
STATIC_URL = '/static/' | ||
|
||
SECRET_KEY = 'secret-key' | ||
|
||
ROOT_URLCONF = 'emoticons.demo.urls' | ||
|
||
TEMPLATE_LOADERS = ( | ||
'django.template.loaders.filesystem.Loader', | ||
'django.template.loaders.app_directories.Loader', | ||
) | ||
|
||
TEMPLATE_DIRS = ( | ||
PROJECT_ROOT, | ||
) | ||
|
||
INSTALLED_APPS = ( | ||
'emoticons', | ||
'django.contrib.staticfiles' | ||
) |
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,11 @@ | ||
"""Urls for the emoticons demo""" | ||
from django.conf.urls import url | ||
from django.conf.urls import patterns | ||
from django.views.generic import TemplateView | ||
|
||
|
||
urlpatterns = patterns( | ||
'', | ||
url(r'^$', TemplateView.as_view( | ||
template_name='demo.html')), | ||
) |
Oops, something went wrong.