Commits

Daniel Martins  committed f71c554

Changes layout, including registration form on frontpage

  • Participants
  • Parent commits 2803e37

Comments (0)

Files changed (3)

File htdocs/static/styles.css

 	height: 100%;
 }
 
-a {
+#menu-bar a {
 	text-decoration: none;
 	font-weight: bold;
-	color: #FFF;
+	color: white;
 }
 
 a:hover {
 	padding-bottom: 80px;
 }
 
+
 #footer {
-	position: absolute;
+	/*position: absolute;
 	bottom: 0px;
 	height: 75px;
 	background-color: #739ABD;
 	border-top: solid 6px #526671; 
 	border-bottom: solid 6px #EFEFF7; 
-	min-width:100%;
+	min-width:100%;*/
 	font-size: 11pt;
+	text-align: center;
 }
 
-#footer div {
+#footer a{
+	font-size: 11pt;
+	text-align: center;
+}
+
+/*#footer div {
 	font-size: inherit;
 	margin-top: 30px;
 	margin-left: 150px;
 	color: #FFF;
 	text-align: center;
 	text-shadow: #000 0px 0px 0.3em; 
-}
+}*/
 
-#footer div strong {
+/*#footer div strong {
 	font-size: inherit;
 	color: #000;
 	text-shadow: None; 
-}
+}*/
 
 #clear {
 	clear: both;
 	border: none;
 }
 
+#registration-box {
+	width: 245px;
+	min-height: 150px;
+	left: 188px;
+}
+
+#registration-box ul li.body {
+	padding-top: 5px;
+	padding-left: 5px;
+}
+
+#registration-box ul li.foot {
+	padding-top: 5px;
+	padding-left: 5px;
+	border: none;
+}
+
 #repos {
 	width: 340px;
 	min-height: 150px;
 	right: 0%;
 }
 
+.footer {
+	float: right;
+	list-style: none;
+	margin: 0px;
+	padding: 0px;
+	text-align: right;
+}

File templates/base.html

 	<style type="text/css">
 			@IMPORT url("/static/styles.css");
 	</style>
-	<title>{% block title %}{% endblock %}</title>
+	<title>{% block title %}HgBox - Mercurial Repositories{% endblock %}</title>
 </head>
 <body>
 	<div id="main">
     {% endblock %}
 		</div><!-- #content -->
 		<div id="clear"></div>
+		<br />
 		<div id="footer">
-			<div>freeHg copyright 2010 by <strong>freeHg Team</strong> | Django <strong>{{django_version}}</strong> / Hg <strong>{{hg_version}}</strong></div>
+			HgBox Copyright 2010
+			<a href="""">TOS</a>
+			 | 
+			<a href="""">Privacy</a>
+			 | 
+			<a href="http://www.djangoproject.com/" >Django {{django_version}}</a>
+			 | 
+			<a href="http://mercurial.selenic.com/" >Hg {{hg_version}}</a>
+			
 		</div><!-- #footer -->
 	</div><!-- #main -->
 </body>

File templates/frontpage.html

 {% extends "base.html" %}
 
-{% block title %} freeHg {% endblock %}
+{% block title %} HgBox - Mercurial Repositories {% endblock %}
 
 {% block content %}
 
 							Mercurial [Hg for short] is a Distributed Version Control System. 
 				 			Instead of using a single repository per project, each developer can have their own repository.
 						</li>
-						<li class="body">freeHg makes it quick and easy to share your repositories.</li>
+						<li class="body">HgBox makes it quick and easy to share your mercurial repositories.</li>
 					</ul>
 				</div><!-- #what-is -->
 				{% endif %}
 						</ul>
 					</form>
 				</div><!-- #login-box -->
+				<br />
+				<div id="registration-box" class="dialog">
+					<form action='./' method='post'>{% csrf_token %}
+					<p class="title"><strong>... or create an account:</strong></p>
+					<ul>
+        			{% for field in new_account_form %}
+            			{% ifnotequal field.name "tos" %}
+							{% if field.errors %}
+								<li class="body">
+									{{field.errors}}
+								</li>
+							{% endif %}
+                    	<li class="body">
+                    		<div>{{field.label_tag}}</div>
+							<div>{{field}}</div>
+						</li>
+							{% if new_account_form.tos.errors %}
+								<li class="body">
+									{{new_account_form.tos.errors}}
+								</li>
+							{% endif %}
+						
+						{% endifnotequal %}
+					{% endfor %}
+					{% if new_account_form.tos.errors %}
+						<li class="body">
+							{{new_account_form.tos.errors}}
+						</li>
+					{% endif %}
+					<li class="body">
+						<div><p>{{new_account_form.tos}} I agree to the <a href="/tos/">Terms of Service</a>.</p><div>
+					</li>
+					<li class="foot"><input type='submit' name='newaccount'  value='Create new account' /></li>
+					</ul>
+				</div> <!-- #registration-box -->
 				{% endif %}
 			</div>
 {% endblock %}