aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/resources
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-08-30 14:38:28 +0300
committerGravatar Vitaly Takmazov2016-08-30 14:38:28 +0300
commite6962670c778966b49620d6166581986fa54cf34 (patch)
treeec7518d34bc8910ad915ffad8da09266e9452b39 /juick-www/src/main/resources
parent3e4ed1552076018f88cc2bb47cb99b7eec607286 (diff)
fix templates
Diffstat (limited to 'juick-www/src/main/resources')
-rw-r--r--juick-www/src/main/resources/layouts/content.html24
-rw-r--r--juick-www/src/main/resources/views/partial/footer.html34
-rw-r--r--juick-www/src/main/resources/views/partial/tags.html6
3 files changed, 46 insertions, 18 deletions
diff --git a/juick-www/src/main/resources/layouts/content.html b/juick-www/src/main/resources/layouts/content.html
index 4cc1e2bf..ef12382c 100644
--- a/juick-www/src/main/resources/layouts/content.html
+++ b/juick-www/src/main/resources/layouts/content.html
@@ -1,22 +1,19 @@
<!DOCTYPE html>
<html>
-<head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <head>
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script type="text/javascript" src="/scripts.js"></script>
- <link rel="stylesheet" type="text/css" href="/style.css"/>
+ <link rel="stylesheet" type="text/css" href="/style.css" />
{% block headers %}
{{ headers | raw }}
{% endblock %}
<title>{{ title }}</title>
- <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/>
- <link rel="icon" href="//i.juick.com/favicon.png"/>
- <!--[if lt IE 9 & (!IEMobile 7)]>
- <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
- <![endif]-->
-</head>
-<body>
-{% include "views/partial/navigation.html" %}
+ <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
+ <link rel="icon" href="//i.juick.com/favicon.png" />
+ </head>
+ <body>
+ {% include "views/partial/navigation.html" %}
<section id="content">
{% block content %}
{% endblock %}
@@ -25,5 +22,6 @@
{% block column %}
{% endblock %}
</aside>
-</body>
+ {% include "views/partial/footer.html" %}
+ </body>
</html> \ No newline at end of file
diff --git a/juick-www/src/main/resources/views/partial/footer.html b/juick-www/src/main/resources/views/partial/footer.html
new file mode 100644
index 00000000..6978a2c0
--- /dev/null
+++ b/juick-www/src/main/resources/views/partial/footer.html
@@ -0,0 +1,34 @@
+<div id="footer">
+ <div id="footer-right">
+ <a href="/settings" rel="nofollow">Настройки</a> &#183;
+ <a href="/help/ru/contacts" rel="nofollow">Контакты</a> &#183;
+ <a href="/help/" rel="nofollow">Справка</a> &#183;
+ <a href="/help/ru/adv" rel="nofollow">Реклама</a>
+ </div>
+ <div id="footer-social">
+ <a href="https://twitter.com/Juick" rel="nofollow" class="ico32-twi">Twitter</a>
+ <a href="https://vk.com/juick" rel="nofollow" class="ico32-vk">ВКонтакте</a>
+ <a href="https://www.facebook.com/JuickCom" rel="nofollow" class="ico32-fb">Facebook</a>
+ </div>
+ <div id="footer-left">juick.com &copy; 2008-2016
+ {% if links %}
+ <br/>Спонсоры: {{ links }}
+ {% endif %}
+ </div>
+</div>
+<script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+ ga('create','UA-385578-4','juick.com');
+ ga('require','displayfeatures');
+ ga('send','pageview');
+ {% if (sapeon) %}
+ var _acic={dataProvider:10};
+ (function(){
+ var e=document.createElement('script');e.type='text/javascript';e.async=true;e.src='//www2.aci'+'nt.net/aci.js';
+ var t=document.getElementsByTagName('script')[0];t.parentNode.insertBefore(e,t);
+ })();
+ {% endif %}
+</script> \ No newline at end of file
diff --git a/juick-www/src/main/resources/views/partial/tags.html b/juick-www/src/main/resources/views/partial/tags.html
index a2906ef0..4d05b7fb 100644
--- a/juick-www/src/main/resources/views/partial/tags.html
+++ b/juick-www/src/main/resources/views/partial/tags.html
@@ -1,7 +1,3 @@
{% for tag in tags %}
-<span>
- <!-- TODO: tagscloud: font-size: small, large, x-large, xx-large !-->
- <a href="/{{ user.getUName() }}/?tag={{tag.getName()}}"
- title="{{ tag.getName() }}" class="usage_{{ tag.UsageCnt }}">{{ tag.getName() }}</a>
-</span>
+ <a href="/tag/{{ tag | urlencode }}" title="{{ tag }}">{{ tag }}</a>
{% endfor %} \ No newline at end of file