Skip to content

Commit 025cd81

Browse files
committed
merging conflicts
2 parents 84a778b + d76ff55 commit 025cd81

File tree

5 files changed

+1503
-6
lines changed

5 files changed

+1503
-6
lines changed

pyhackers/controllers/main.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ def fancy_os_list():
188188
return render_template('project_frame.html', projects=[])
189189

190190

191+
@main_app.route('/top-python-contributors-developers')
192+
def top_python_dudes():
193+
return render_template("top-python-developers.html")
194+
195+
191196
@main_app.route('/os')
192197
@main_app.route('/os/')
193198
@main_app.route('/open-source/')
@@ -226,8 +231,9 @@ def package_details(package):
226231
return render_base_template("package.html", package=package_obj, description=description)
227232

228233

229-
@cache.cached(timeout=10000, unless=request_force_non_cache)
234+
230235
@main_app.route('/python-packages/')
236+
@cache.cached(timeout=10000, unless=request_force_non_cache)
231237
def package_list():
232238
packages = Package.query.order_by(Package.mdown.desc()).limit(1000)
233239

@@ -296,8 +302,9 @@ def channel(name):
296302
return render_base_template("channel.html", channel_name=channel_name)
297303

298304

299-
@cache.memoize(timeout=10000, unless=request_force_non_cache)
305+
300306
@main_app.route('/user/<regex(".+"):nick>')
307+
@cache.memoize(timeout=10000, unless=request_force_non_cache)
301308
def user_profile(nick):
302309
_ = get_profile_by_nick(nick)
303310
if _ is not None:
@@ -317,6 +324,7 @@ def find_tutorial(slug):
317324

318325

319326
@main_app.route('/tutorial/<regex(".+"):nick>/<regex(".+"):slug>')
327+
@cache.memoize(timeout=10000, unless=request_force_non_cache)
320328
def tutorial(nick, slug):
321329
return render_template("tutorial.html", tutorial=find_tutorial("{}/{}".format(nick, slug)))
322330

pyhackers/static/css/app.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ div#page-wrap {
3333
padding-bottom: 85px; /* height of footer */
3434
}
3535

36-
#body #main .container{
36+
#body #main .container, #body #main .container-fluid{
3737
background-color:white;
3838
border-radius: 5px;
3939
/*padding-left:50px;*/
@@ -322,4 +322,4 @@ body{
322322
}
323323
.discussions .topic p{
324324
padding-left:5px;
325-
}
325+
}

pyhackers/static/minified.html

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

pyhackers/templates/base.html

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,32 @@
4444

4545
<li><a href="/links">Links</a></li>
4646
<li><a href="/top-python-projects/" style="color:orangered;font-weight:bold;">Top Python Projects</a></li>
47+
<<<<<<< HEAD
4748
<li><a href="/discuss/home" style="">Discussion</a></li>
4849

4950

51+
=======
52+
<li><a href="/top-python-contributors-developers" style="color:aqua;font-weight:bold;">Top Python Contributors</a></li>
53+
{# <li class="dropdown">#}
54+
{# <a class="dropdown-toggle" data-toggle="dropdown" href="#">#}
55+
{# Channels<b class="caret"></b>#}
56+
{# </a>#}
57+
{# <ul class="dropdown-menu">#}
58+
{# {% for channel in channels %}#}
59+
{# <li><a href="/channels/{{ channel.slug }}">{{ channel.name }}</a></li>#}
60+
{# {% endfor %}#}
61+
{##}
62+
{# <li class="divider"></li>#}
63+
{# <li><a href="/channels/lobby">Lobby</a></li>#}
64+
{# </ul>#}
65+
66+
{# <li><a href="#mc_embed_signup" id='join-us' data-toggle='modal' data-track='newsletter'>Join Beta&nbsp;(200+)</a></li>#}
67+
<li><a href='/about'>About</a></li>
68+
{# <li><a href="http://github.com/pythonhackers/pythonhackers" target="_blank"><i class='fa fa-github'></i>&nbsp;28</a>#}
69+
{# </li>#}
70+
{# <li><a href="http://twitter.com/pythonhackers" target="_blank"><i class='fa fa-twitter'></i>&nbsp;260#}
71+
{# </a></li>#}
72+
>>>>>>> d76ff557694b26297d75d1115c9f45b43b0e813c
5073
</ul>
5174
<ul class='nav navbar-nav pull-right'>
5275
{% if logged_in %}
@@ -107,18 +130,22 @@
107130

108131

109132

133+
110134
<script src="{{ static_route }}/js/underscore-min.js" type="text/javascript"></script>
111135
<script src="{{ static_route }}/js/bootstrap.min.js" type="text/javascript"></script>
112136
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.3.0/handlebars.min.js" type="text/javascript"></script>
113137
<script src="/static/js/app/main.js?_={{ cache_buster }}"></script>
114-
{% block script_links %}{% endblock %}
138+
{% block script_links %}{% endblock %}
115139

116140
{% if PROD %}
117141
{% include "3rd_party.html" %}
118142
{% endif %}
143+
119144
<script>
120145
{% block scripts %}{% endblock %}
146+
{% autoescape off %}var session = {{ user_json }};{% endautoescape %}
147+
121148
</script>
122149
</div>
123150
</body>
124-
</html>
151+
</html>

0 commit comments

Comments
 (0)