color: white;\r
}\r
\r
-pre.commit_message { \r
+.commit_message {\r
padding: 8px;\r
border: solid #ddd;\r
border-width: 1px 0px 0px;\r
+ border-radius: 0px;\r
}\r
\r
div.bug_open, span.bug_open {\r
\r
table.repositories tr.group {\r
background-color: #ccc;\r
+ border-left: 1px solid #ccc;\r
+ border-right: 1px solid #ccc;\r
}\r
\r
table.repositories tr.group td {\r
white-space: nowrap;\r
}\r
\r
-span.sha1, span.sha1 a, span.sha1 a span, pre.commit_message {\r
- font-family: monospace;\r
+span.sha1, span.sha1 a, span.sha1 a span, .commit_message {\r
+ font-family: consolas, monospace;\r
font-size: 13px;\r
}\r
\r
<!-- changed paths -->\r
<div style="padding-top:15px;">\r
<!-- commit legend -->\r
- <div style="text-align:right;" wicket:id="commitLegend"></div>\r
+ <div class="hidden-phone" style="text-align:right;" wicket:id="commitLegend"></div>\r
\r
<div class="header"><i class="icon-file"></i> <wicket:message key="gb.changedFiles">[changed files]</wicket:message></div>\r
</div>\r
<tr><th><wicket:message key="gb.author">author</wicket:message></th><td><span class="sha1" wicket:id="commitAuthor">[author</span></td></tr>\r
<tr><th></th><td><span class="sha1" wicket:id="commitAuthorDate">[author date]</span></td></tr>\r
<tr><th><wicket:message key="gb.committer">committer</wicket:message></th><td><span class="sha1" wicket:id="commitCommitter">[committer]</span></td></tr>\r
- <tr class="hidden-phone"><th></th><td><span class="sha1" wicket:id="commitCommitterDate">[commit date]</span></td></tr>\r
+ <tr><th></th><td><span class="sha1" wicket:id="commitCommitterDate">[commit date]</span></td></tr>\r
<tr class="hidden-phone"><th><wicket:message key="gb.commit">commit</wicket:message></th><td><span class="sha1" wicket:id="commitId">[commit id]</span></td></tr>\r
<tr class="hidden-phone"><th><wicket:message key="gb.tree">tree</wicket:message></th>\r
<td><span class="sha1" wicket:id="commitTree">[commit tree]</span>\r
</div>\r
\r
<!-- full message -->\r
- <pre class="commit_message" wicket:id="fullMessage">[commit message]</pre>\r
+ <div class="commit_message" wicket:id="fullMessage">[commit message]</div>\r
\r
<!-- git notes -->\r
<table class="gitnotes">\r
</table>\r
\r
<!-- commit legend -->\r
- <div style="text-align:right;" wicket:id="commitLegend"></div>\r
+ <div class="hidden-phone" style="text-align:right;" wicket:id="commitLegend"></div>\r
\r
<!-- header -->\r
<div class="header"><i class="icon-file"></i> <wicket:message key="gb.changedFiles">[changed files]</wicket:message></div>\r
<td><span wicket:id="docName"></span></td> \r
<td class="size"><span wicket:id="docSize">[doc size]</span></td>\r
<td class="treeLinks">\r
- <span class="link">\r
+ <span class="hidden-phone link">\r
<a wicket:id="view"><wicket:message key="gb.view"></wicket:message></a> | <a wicket:id="raw"><wicket:message key="gb.raw"></wicket:message></a> | <a wicket:id="blame"><wicket:message key="gb.blame"></wicket:message></a> | <a wicket:id="history"><wicket:message key="gb.history"></wicket:message></a>\r
</span> \r
</td>\r
\r
<wicket:fragment wicket:id="workingCopyFragment">\r
<p class="pull-right" style="padding-top:5px;">\r
- <span class="alert alert-info" style="padding: 8px 14px 8px 14px;vertical-align: middle;"><i class="icon-exclamation-sign" style="vertical-align: middle;"></i> <span wicket:id="workingCopy" style="font-weight:bold;">[working copy]</span></span>\r
+ <span class="alert alert-info" style="padding: 8px 14px 8px 14px;vertical-align: middle;"><i class="icon-exclamation-sign" style="vertical-align: middle;"></i> <span class="hidden-phone" wicket:id="workingCopy" style="font-weight:bold;">[working copy]</span></span>\r
</p>\r
</wicket:fragment>\r
</wicket:extend>\r
}\r
\r
protected void addFullText(String wicketId, String text, boolean substituteRegex) {\r
- String html;\r
+ String html = StringUtils.escapeForHtml(text, true);\r
if (substituteRegex) {\r
html = GitBlit.self().processCommitMessage(repositoryName, text);\r
} else {\r
- html = StringUtils.breakLinesForHtml(text);\r
+ html = StringUtils.breakLinesForHtml(html);\r
}\r
add(new Label(wicketId, html).setEscapeModelStrings(false));\r
}\r
setPersonSearchTooltip(nameLink, name, searchType);\r
fullPerson.add(nameLink);\r
\r
- LinkPanel addressLink = new LinkPanel("personAddress", "list", "<" + address + ">",\r
+ LinkPanel addressLink = new LinkPanel("personAddress", "hidden-phone list", "<" + address + ">",\r
GitSearchPage.class, WicketUtils.newSearchParameter(repositoryName, objectId,\r
address, searchType));\r
setPersonSearchTooltip(addressLink, address, searchType);\r
</table>\r
\r
<!-- full message -->\r
- <pre style="border-bottom:0px;" class="commit_message" wicket:id="fullMessage">[tag full message]</pre>\r
+ <div style="border-bottom:0px;" class="commit_message" wicket:id="fullMessage">[tag full message]</div>\r
\r
<wicket:fragment wicket:id="fullPersonIdent">\r
<span wicket:id="personName"></span><span wicket:id="personAddress"></span>\r
<td class="icon"><img wicket:id="commitIcon" /></td>\r
<td class="message"><table class="nestedTable"><tr><td><span style="vertical-align:middle;" wicket:id="commitShortMessage">[commit short message]</span></td><td><div style="text-align:right;" wicket:id="commitRefs">[commit refs]</div></td></tr></table></td>\r
<td class="rightAlign">\r
- <span class="link">\r
+ <span class="hidden-phone link">\r
<a wicket:id="commit"><wicket:message key="gb.commit"></wicket:message></a> | <a wicket:id="commitdiff"><wicket:message key="gb.commitdiff"></wicket:message></a> | <a wicket:id="tree"><wicket:message key="gb.tree"></wicket:message></a>\r
</span>\r
</td>\r