Source

srcfrk / templates / srcfrk_app / home.html

	
{% extends "site_base.html" %}

{% load media %}
{% load raw %}
{% load lines %}
{% load voting_tags %}

{% block page_title %}{{ fork.name }}{% endblock %}

{% block page_head %}
	{{ block.super }}
	
	{% include_media "editor.js" %}
	
	<style>
		#topsection {
			background: transparent;
			text-align: center;
			padding-top: 1em;
		}
		#topsection h1 {
			margin: 0 auto;
			display: none;
		}
		body {
			background: white url({% media_url "img/background-burst.png" %}) top center no-repeat;
		}
		#maincontainer #fixedcontent {
			margin-top: 300px;
		}
	</style>
{% endblock %}

{% block bootstrap %}
<script>
	//hljs.addAlternatingRows();
	//hljs.addLineNumbers();
	hljs.tabReplace = '<span class="indent">\t</span>';
	hljs.initHighlightingOnLoad();

	$(document).ready(function() {
		startHome();
	});
</script>
{% endblock bootstrap %}


{% block page_body %}
<div id="fixedcontent">
	<div id="leftcontent">
		<h1>The easy way to share, fork, and patch code.</h1>
		<h3>Click <button class="large" data-bind="click: openEditor">Open Editor</button> now and paste in some code to start sharing.</h3>
		
		<div id="tagcloud"><ul class="tags">
		{% for tag in tag_cloud %}
			<a href="{% url tag tag.name %}"><li style="font-size: {{tag.font_size|add:8}}pt">{{ tag }}</li></a>
		{% endfor %}
		</ul></div>
	</div>
	<div id="rightcontent">
		<h2>Latest Forks</h2>
		<ul class="forks">
		{% for fork in latest_forks|slice:":10" %}
			<li>
				<div class="score" title="Score">{{ fork.score }}</div>
				<div class="revisions" title="Revisions">{{ fork.revisions.all|length|add:-1 }}</div>
				<a href="{{ fork.get_absolute_url }}" title="{{ fork.description }}">{{ fork.name }}</a>
			</li>
		{% endfor %}
		</ul>
	</div>
</div>
{% endblock %}