Mercurial > hg-website
changeset 45:7276388fc71b
about: integrate about page in django version
author | David Soria Parra <dsp@php.net> |
---|---|
date | Tue, 17 Feb 2009 12:54:07 +0100 |
parents | b4e2beb77366 |
children | 2c9642c7fa43 |
files | hgscm/apps/www/urls.py hgscm/apps/www/views.py hgscm/templates/about.html hgscm/templates/base.html |
diffstat | 4 files changed, 54 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hgscm/apps/www/urls.py Mon Feb 16 12:14:57 2009 +0100 +++ b/hgscm/apps/www/urls.py Tue Feb 17 12:54:07 2009 +0100 @@ -2,4 +2,5 @@ urlpatterns = patterns('hgscm.apps.www.views', url(r'^$', 'frontpage', name='frontpage'), -) \ No newline at end of file + url(r'^about$', 'about', name='about'), +)
--- a/hgscm/apps/www/views.py Mon Feb 16 12:14:57 2009 +0100 +++ b/hgscm/apps/www/views.py Tue Feb 17 12:54:07 2009 +0100 @@ -4,3 +4,6 @@ def frontpage(request): return render_to_response("frontpage.html", { }, RequestContext(request)) +def about(request): + return render_to_response("about.html", { }, + RequestContext(request))
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hgscm/templates/about.html Tue Feb 17 12:54:07 2009 +0100 @@ -0,0 +1,47 @@ +{% extends "base.html" %} + +{% block content %} + +<div class="row"> + <div class="col big"> + <h1>Mercurial source control management</h1> + <p><strong>Mercurial is a free, distributed source control management tool. It offers you the power to efficiently handle projects of any size while using an intuitive interface. It is easy to use and hard to break, making it ideal for anyone working with versioned files. + </strong></p> + + <h2>Distributed architecture</h2> + + <p>Traditional version control systems such as Subversion are typical client-server architectures with a central server to store the revisions of a project. In contrast, Mercurial is truly distributed, giving each developer a local copy of the entire development history. This way it works independent of network access or a central server. Committing, branching and merging are fast and cheap.</p> + + <h2>Fast</h2> + + <p>Mercurials implementation and data structures are designed to be fast. You can generate diffs between revisions, or jump back in time within seconds. Therefore Mercurial is perfectly suiteable for large projects such as OpenJDK or NetBeans.</p> + + <h2>Platform independent</h2> + + <p>Mercurial was written with platform independence in mind. Therefore most of Mercurial is written in Python, with a small part in portable C for performance reasons. As a result, binary releases are available on all major platforms.</p> + + <h2>Extensible</h2> + + <p>The functionality of Mercurial can be increased with extensions, either by activating the official ones which are shipped with Mercurial or downloading some (<a href="http://www.selenic.com/mercurial/wiki/index.cgi/UsingExtensions">from the wiki</a> or by <a href="http://www.selenic.com/mercurial/wiki/index.cgi/WritingExtensions">writing your own</a>). Extensions are written in Python and can change the workings of the basic commands, add new commands and access all the core functions of Mercurial.</p> + + <h2>Open Source</h2> + + <p>Mercurial is free software licensed under the terms of the <a href="http://www.gnu.org/licenses/gpl-2.0.txt">GNU General Public License Version 2</a>.</p> + + <h3>Similar projects</h3> + + <p>Mercurial is used for version control of files. Similar projects include <a href="http://www.git-scm.org">git</a>, <a href="http://bazaar-vcs.org">Bazaar</a>, <a href="http://subversion.tigris.org/">Subversion</a> and <a href="http://www.nongnu.org/cvs/">CVS</a>. + </div> + <div class="col"> + <h2>Download Mercurial</h2> + <a class="download typeface-js" href="javascript:void(0);"> + <strong>Download now</strong> + Mercurial <em>2.42</em> + <span>Windows XP | Vista | 7</span> + </a> + </div> + </div> + +</div> + +{% endblock %}
--- a/hgscm/templates/base.html Mon Feb 16 12:14:57 2009 +0100 +++ b/hgscm/templates/base.html Tue Feb 17 12:54:07 2009 +0100 @@ -13,14 +13,14 @@ <h1 id="logo"><a href="/">mercurial</a></h1> <ul id="nav" class="typeface-js"> - <li><a href="javascript:void(0);">about</a></li> + <li><a href="about">about</a></li> <li><a href="javascript:void(0);">download</a></li> <li><a href="javascript:void(0);">extensions</a></li> <li><a href="javascript:void(0);">docs</a></li> <li><a href="javascript:void(0);">community</a></li> </ul> - <form id="search" method="post" action="index.html"> + <form id="search" method="post" action="search/"> <fieldset> <legend>Search form</legend> <label for="keyword">keyword</label>