]> source.dussan.org Git - gitblit.git/commitdiff
Fixed-width 980px and centered. Dropped About.
authorJames Moger <james.moger@gitblit.com>
Tue, 5 Apr 2011 12:24:53 +0000 (08:24 -0400)
committerJames Moger <james.moger@gitblit.com>
Tue, 5 Apr 2011 12:24:53 +0000 (08:24 -0400)
resources/gitblit.css
src/com/gitblit/utils/JGitUtils.java
src/com/gitblit/wicket/GitBlitWebApp.java
src/com/gitblit/wicket/pages/AboutPage.html [deleted file]
src/com/gitblit/wicket/pages/AboutPage.java [deleted file]
src/com/gitblit/wicket/pages/ShortLogPage.html
src/com/gitblit/wicket/pages/SummaryPage.html
src/com/gitblit/wicket/pages/TreePage.html
src/com/gitblit/wicket/panels/PageFooter.html

index 21f6ca7c4b0a9e9816206fbeb3024fe58d022cce..032b26ee420c5e403ba2d2bba8081435033af67d 100644 (file)
@@ -8,9 +8,14 @@ html, body, table, dl, dt, dd, ol, ul, li, form, a, span, tr, th, td, div, em {
 }\r
 \r
 body {\r
+       width: 980px;\r
        margin: 5px;\r
        background-color: #ffffff;\r
        color: #000000;\r
+    margin-right: auto;\r
+    margin-left: auto;\r
+    margin-top: none;\r
+    padding: 0px;\r
 }\r
 \r
 pre.prettyprint, pre.plainprint {\r
index 16a0e9bcca3f68ede78634aa4eb39844e462198a..0c29eab8a09d814cb32065578cea98ae4af60eb2 100644 (file)
@@ -283,7 +283,7 @@ public class JGitUtils {
                                size = walk.getObjectReader().getObjectSize(walk.getObjectId(0), Constants.OBJ_BLOB);\r
                        }\r
                } catch (Throwable t) {\r
-                       LOGGER.error("Failed to retrieve blobl size", t);\r
+                       LOGGER.error("Failed to retrieve blob size", t);\r
                }\r
                return new PathModel(name, walk.getPathString(), size, walk.getFileMode(0).getBits(), commit.getName());\r
        }\r
index 86b6ba6e61d3baa86f472fdd3f5215f4ac8d373e..b5baa6537b887d8949498344b8691b82a31a4851 100644 (file)
@@ -28,7 +28,6 @@ import com.gitblit.GitBlitServer;
 import com.gitblit.StoredSettings;\r
 import com.gitblit.utils.JGitUtils;\r
 import com.gitblit.wicket.models.RepositoryModel;\r
-import com.gitblit.wicket.pages.AboutPage;\r
 import com.gitblit.wicket.pages.BlobPage;\r
 import com.gitblit.wicket.pages.CommitPage;\r
 import com.gitblit.wicket.pages.HeadsPage;\r
@@ -60,7 +59,6 @@ public class GitBlitWebApp extends WebApplication {
                getRequestCycleSettings().setGatherExtendedBrowserInfo(true);\r
 \r
                // setup the url paths\r
-               mount(new MixedParamUrlCodingStrategy("/about", AboutPage.class, new String[] { }));\r
                mount(new MixedParamUrlCodingStrategy("/summary", SummaryPage.class, new String[] { "p" }));\r
                mount(new MixedParamUrlCodingStrategy("/shortlog", ShortLogPage.class, new String[] { "p", "h" }));\r
                mount(new MixedParamUrlCodingStrategy("/tags", TagsPage.class, new String[] { "p" }));\r
diff --git a/src/com/gitblit/wicket/pages/AboutPage.html b/src/com/gitblit/wicket/pages/AboutPage.html
deleted file mode 100644 (file)
index f6c49cf..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<html xmlns="http://www.w3.org/1999/xhtml" >\r
-<body>\r
-       <div wicket:id="pageHeader"></div>\r
-       \r
-       <img src="gitblt2.png" />\r
-       \r
-       <!-- footer -->\r
-       <div wicket:id="pageFooter"></div>\r
-</body>\r
-</html>
\ No newline at end of file
diff --git a/src/com/gitblit/wicket/pages/AboutPage.java b/src/com/gitblit/wicket/pages/AboutPage.java
deleted file mode 100644 (file)
index fb34f73..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.gitblit.wicket.pages;\r
-\r
-import com.gitblit.wicket.BasePage;\r
-import com.gitblit.wicket.panels.PageFooter;\r
-import com.gitblit.wicket.panels.PageHeader;\r
-\r
-\r
-public class AboutPage extends BasePage {\r
-\r
-       public AboutPage() {\r
-               add(new PageHeader("pageHeader"));\r
-\r
-               add(new PageFooter("pageFooter"));\r
-       }\r
-}\r
index ffc0a678ca8073bf4ec90edb5932a673385903a7..f1daa272348caaebd411c2be1b10e76cdc09b96f 100644 (file)
@@ -9,7 +9,7 @@
        \r
        <!-- shortlog -->       \r
        <div style="margin-top:5px;" class="header" wicket:id="summary"></div>  \r
-       <table class="pretty">\r
+       <table style="width:100%" "class="pretty">\r
                <tbody>\r
                        <tr wicket:id="commit">\r
                        <td class="date"><span wicket:id="commitDate"></span></td>\r
index 9ed69293c01ccc95381db22138d23dd12a60be8b..f5697cd6c3d5094c2aaa12fa5bf1a28485cd65c4 100644 (file)
@@ -9,12 +9,12 @@
        \r
        <div>\r
                <!-- Repository Activity Chart -->      \r
-               <div style="width:50%;float:right;">\r
+               <div style="width:400px;float:right;">\r
                        <img class="activityGraph" wicket:id="commitsChart" />\r
                </div>  \r
        \r
                <!-- Repository info -->\r
-               <div style="width:50%;"> \r
+               <div style="margin-right:410px;"> \r
                        <table class="plain">\r
                                <tr><th>description</th><td><span wicket:id="repositoryDescription">Message goes here</span></td></tr>\r
                                <tr><th>owner</th><td><span wicket:id="repositoryOwner">Message goes here</span></td></tr>\r
@@ -40,7 +40,7 @@
        <div class="pager" wicket:id="shortlogMore"></div>\r
 \r
        <!-- Open Heads Body -->\r
-       <div style="width:34%;float:right;">\r
+       <div style="width:300px;float:right;">\r
                <!-- heads -->\r
                <div class="header" wicket:id="heads"></div>    \r
                <table style="width:100%" class="pretty">\r
@@ -57,7 +57,7 @@
        </div>\r
        \r
        <!-- Open Tags body -->\r
-       <div style="width:65%">\r
+       <div style="margin-right:305px;">\r
                <!-- tags -->\r
                <div class="header" wicket:id="tags"></div>     \r
                        <table style="width:100%" class="pretty">\r
index 34806bbc47c44baa21a77348c9a159e6f9ec233a..174e4278c5567dc5d60015f10699dc28a5eb6ec9 100644 (file)
@@ -19,7 +19,7 @@
        <div wicket:id="breadcrumbs"></div>\r
                \r
        <!-- changed paths -->  \r
-       <table class="pretty">\r
+       <table style="width:100%" class="pretty">\r
                <tr wicket:id="changedPath">\r
                        <td><span wicket:id="pathName"></span></td>                     \r
                        <td class="size"><span wicket:id="pathSize"></span></td>\r
index be1971ce09fe6bb5cffef76373157262292a567a..1d55ca355355deec30c91e95f7e41ef787c27b30 100644 (file)
@@ -3,8 +3,7 @@
 <wicket:panel>\r
        <div class="page_footer">\r
                <div style="float:right">\r
-                       <span wicket:id="gbVersion"></span> | \r
-                       <a title="about git:blit" href="about">About Git:Blit</a>\r
+                       <a href="http://gitblit.com"><span wicket:id="gbVersion"></span></a> \r
                </div>\r
                <div wicket:id="footerText"></div>\r
        </div>\r