From 227736841cabf0b6cde6dc3f9191847898dae2d8 Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 13 Jul 2012 23:05:27 -0400 Subject: [PATCH] Changes to commit page for responsive layout --- resources/gitblit.css | 9 ++++++--- src/com/gitblit/wicket/pages/CommitDiffPage.html | 2 +- src/com/gitblit/wicket/pages/CommitPage.html | 6 +++--- src/com/gitblit/wicket/pages/DocsPage.html | 2 +- src/com/gitblit/wicket/pages/RepositoryPage.html | 2 +- src/com/gitblit/wicket/pages/RepositoryPage.java | 6 +++--- src/com/gitblit/wicket/pages/TagPage.html | 2 +- src/com/gitblit/wicket/panels/SearchPanel.html | 2 +- 8 files changed, 17 insertions(+), 14 deletions(-) diff --git a/resources/gitblit.css b/resources/gitblit.css index b8792dcd..b51637d2 100644 --- a/resources/gitblit.css +++ b/resources/gitblit.css @@ -443,10 +443,11 @@ span.login input:focus { color: white; } -pre.commit_message { +.commit_message { padding: 8px; border: solid #ddd; border-width: 1px 0px 0px; + border-radius: 0px; } div.bug_open, span.bug_open { @@ -720,6 +721,8 @@ table.repositories td.icon img { table.repositories tr.group { background-color: #ccc; + border-left: 1px solid #ccc; + border-right: 1px solid #ccc; } table.repositories tr.group td { @@ -834,8 +837,8 @@ td.date { white-space: nowrap; } -span.sha1, span.sha1 a, span.sha1 a span, pre.commit_message { - font-family: monospace; +span.sha1, span.sha1 a, span.sha1 a span, .commit_message { + font-family: consolas, monospace; font-size: 13px; } diff --git a/src/com/gitblit/wicket/pages/CommitDiffPage.html b/src/com/gitblit/wicket/pages/CommitDiffPage.html index a0fb5591..de39f4ca 100644 --- a/src/com/gitblit/wicket/pages/CommitDiffPage.html +++ b/src/com/gitblit/wicket/pages/CommitDiffPage.html @@ -18,7 +18,7 @@
-
+
[changed files]
diff --git a/src/com/gitblit/wicket/pages/CommitPage.html b/src/com/gitblit/wicket/pages/CommitPage.html index 354b7ba4..20e6b607 100644 --- a/src/com/gitblit/wicket/pages/CommitPage.html +++ b/src/com/gitblit/wicket/pages/CommitPage.html @@ -25,7 +25,7 @@ author[author [author date] committer[committer] - [commit date] + [commit date] commit[commit id] tree [commit tree] @@ -49,7 +49,7 @@ -
[commit message]
+
[commit message]
@@ -68,7 +68,7 @@
-
+
[changed files]
diff --git a/src/com/gitblit/wicket/pages/DocsPage.html b/src/com/gitblit/wicket/pages/DocsPage.html index 98432b5e..ad93000c 100644 --- a/src/com/gitblit/wicket/pages/DocsPage.html +++ b/src/com/gitblit/wicket/pages/DocsPage.html @@ -17,7 +17,7 @@ [doc size] - + | | | diff --git a/src/com/gitblit/wicket/pages/RepositoryPage.html b/src/com/gitblit/wicket/pages/RepositoryPage.html index 291ee4cf..3195a937 100644 --- a/src/com/gitblit/wicket/pages/RepositoryPage.html +++ b/src/com/gitblit/wicket/pages/RepositoryPage.html @@ -54,7 +54,7 @@

- [working copy] +  [working copy]

diff --git a/src/com/gitblit/wicket/pages/RepositoryPage.java b/src/com/gitblit/wicket/pages/RepositoryPage.java index d6cc51cd..45822e16 100644 --- a/src/com/gitblit/wicket/pages/RepositoryPage.java +++ b/src/com/gitblit/wicket/pages/RepositoryPage.java @@ -216,11 +216,11 @@ public abstract class RepositoryPage extends BasePage { } protected void addFullText(String wicketId, String text, boolean substituteRegex) { - String html; + String html = StringUtils.escapeForHtml(text, true); if (substituteRegex) { html = GitBlit.self().processCommitMessage(repositoryName, text); } else { - html = StringUtils.breakLinesForHtml(text); + html = StringUtils.breakLinesForHtml(html); } add(new Label(wicketId, html).setEscapeModelStrings(false)); } @@ -254,7 +254,7 @@ public abstract class RepositoryPage extends BasePage { setPersonSearchTooltip(nameLink, name, searchType); fullPerson.add(nameLink); - LinkPanel addressLink = new LinkPanel("personAddress", "list", "<" + address + ">", + LinkPanel addressLink = new LinkPanel("personAddress", "hidden-phone list", "<" + address + ">", GitSearchPage.class, WicketUtils.newSearchParameter(repositoryName, objectId, address, searchType)); setPersonSearchTooltip(addressLink, address, searchType); diff --git a/src/com/gitblit/wicket/pages/TagPage.html b/src/com/gitblit/wicket/pages/TagPage.html index b0df3a8a..19f828e3 100644 --- a/src/com/gitblit/wicket/pages/TagPage.html +++ b/src/com/gitblit/wicket/pages/TagPage.html @@ -23,7 +23,7 @@ -
[tag full message]
+
[tag full message]
diff --git a/src/com/gitblit/wicket/panels/SearchPanel.html b/src/com/gitblit/wicket/panels/SearchPanel.html index 50f4638d..74af71c5 100644 --- a/src/com/gitblit/wicket/panels/SearchPanel.html +++ b/src/com/gitblit/wicket/panels/SearchPanel.html @@ -20,7 +20,7 @@
[commit short message]
[commit refs]
- + | | -- 2.39.5