summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáirín Duffy <duffy@redhat.com>2011-12-16 22:22:30 (GMT)
committerMáirín Duffy <duffy@redhat.com>2011-12-16 22:22:30 (GMT)
commitadaa00d82782dfa48289b111f7925c43d4602c3b (patch)
treee52f8df2ee928143c7483a9b2cf098f9af7f53da
parent0e6d2e9322f7a5c08f2ea45ab0464aaf9e14661c (diff)
downloadfedoracommunity-adaa00d82782dfa48289b111f7925c43d4602c3b.zip
fedoracommunity-adaa00d82782dfa48289b111f7925c43d4602c3b.tar.gz
fedoracommunity-adaa00d82782dfa48289b111f7925c43d4602c3b.tar.xz
more patches refinement: added a more prominent 'get raw patch' link, available without diving into individual patches. also a row hover effect in the patches list. also an improved header for individual patches. finally, some footer / agpl notice improvements.
-rw-r--r--fedoracommunity/public/css/fedora.css29
-rw-r--r--fedoracommunity/templates/footer.mak5
-rw-r--r--fedoracommunity/widgets/package/templates/patches.mak4
3 files changed, 30 insertions, 8 deletions
diff --git a/fedoracommunity/public/css/fedora.css b/fedoracommunity/public/css/fedora.css
index bb68f49..941a565 100644
--- a/fedoracommunity/public/css/fedora.css
+++ b/fedoracommunity/public/css/fedora.css
@@ -301,6 +301,12 @@ table {
#patches table td.age {
text-align: right;
+ font-size: 90%;
+ min-width: 30%;
+}
+
+#patches table td.age .date {
+ color: #999;
}
#patches .changelog .author {
@@ -376,11 +382,26 @@ table {
#patches .diffstat-all .diffstat th:last-child,
#patches .diffstat-all .diffstat td:last-child { border-right: 0px !important; padding-right: 7px !important;}
-/** TRYME
-#patches .diffstat-all table.diffstat {
- padding-bottom: 15px;
+.raw-link a {
+ margin-left: 5px;
+ font-weight: 500 !important;
+ display: none;
+ text-decoration: underline !important;
+ color: #A07CBC !important;
+}
+
+tr.patch-name:hover td {
+ background-color: #eef6ff;
+}
+
+tr.patch-name:hover .raw-link a {
+ display: inline;
+}
+
+#patches .active-patch .raw-link a {
+ display: block;
+ color: white !important;
}
-**/
#patches .diffstat-all table.diffstat td {
border-bottom: 0px;
diff --git a/fedoracommunity/templates/footer.mak b/fedoracommunity/templates/footer.mak
index 4190b63..0588831 100644
--- a/fedoracommunity/templates/footer.mak
+++ b/fedoracommunity/templates/footer.mak
@@ -1,7 +1,7 @@
<html>
<%def name="footer()">
- <div id="bottom" class="container_24">
- <div class="clear"> </div>
+ <div class="container_24">
+ <div id="bottom" class="grid_24">
This Web Site is licensed under the GNU Affero General Public License. You may get sources for the current running code from these repositories:
<ul>
<li><a href="http://fedoraproject.org/wiki/Legal/TrademarkGuidelines">Trademark Guidelines</a></li>
@@ -13,6 +13,7 @@
<li><a href="http://infrastructure.fedoraproject.org//5/SRPMS/">RHEL5 Production SRPMS</a></li>
<li><a href="http://infrastructure.fedoraproject.org/6/SRPMS/">RHEL6 Production SRPMS</a></li>
</ul>
+ </div>
</div>
</%def>
</html>
diff --git a/fedoracommunity/widgets/package/templates/patches.mak b/fedoracommunity/widgets/package/templates/patches.mak
index 5e71e87..40e1b4c 100644
--- a/fedoracommunity/widgets/package/templates/patches.mak
+++ b/fedoracommunity/widgets/package/templates/patches.mak
@@ -22,8 +22,8 @@ ${w.children[0].display(on_change='on_change', package=w.package)}
<table>
% for patch in sorted(w.patches):
<tr id="${patch}" class="patch-name">
- <td><a href="#" onclick="return toggle_patch('${patch}');">${patch}</a></td>
- <td class="age">Added ${w.patches[patch][0]} ago <span class="date">(${w.patches[patch][1]})</span></td>
+ <td><a href="#" onclick="return toggle_patch('${patch}');">${patch}</a> <span class="raw-link"><a href="http://pkgs.fedoraproject.org/gitweb/?p=${w.package}.git;a=blob_plain;hb=HEAD;f=${patch}" target="_blank">Link to raw patch</a></span></td>
+ <td class="age">Added ${w.patches[patch][0]} ago <span class="date">(${w.patches[patch][1]})</span></td>
</tr>
% endfor
</table>