summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-13 16:51:11 +0100
committerDan McGee <dan@archlinux.org>2012-11-13 17:21:02 +0100
commit59f5b6ed5524300cc0373ad934b251e220c66da9 (patch)
tree483161a25aa166e7e772687cb10fe2aad9fe9b95
parentcd625181344c73bdb761520dd23549a112549501 (diff)
downloadarchweb-59f5b6ed5524300cc0373ad934b251e220c66da9.tar.gz
archweb-59f5b6ed5524300cc0373ad934b251e220c66da9.tar.xz
Mirror details style and JS cleanup
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--sitestatic/archweb.css9
-rw-r--r--templates/mirrors/mirror_details.html7
2 files changed, 13 insertions, 3 deletions
diff --git a/sitestatic/archweb.css b/sitestatic/archweb.css
index cef4139..52aec59 100644
--- a/sitestatic/archweb.css
+++ b/sitestatic/archweb.css
@@ -314,6 +314,15 @@ table.pretty2 {
border: 1px dotted #bbb;
}
+table.compact {
+ width: auto;
+}
+
+ table.compact td {
+ padding: 0.25em 0 0.25em 1.5em;
+ }
+
+
/* definition lists */
dl {
clear: both;
diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html
index 32ef8a7..884187b 100644
--- a/templates/mirrors/mirror_details.html
+++ b/templates/mirrors/mirror_details.html
@@ -5,12 +5,11 @@
{% block title %}Arch Linux - {{ mirror.name }} - Mirror Details{% endblock %}
{% block content %}
-<!-- TODO: ids and classes -->
-<div id="pkgdetails" class="box">
+<div class="box">
<h2>Mirror Details: {{ mirror.name }}</h2>
- <table id="pkginfo">
+ <table class="compact">
<tr>
<th>Name:</th>
<td>{{ mirror.name }}</td>
@@ -118,6 +117,8 @@ $(document).ready(function() {
$("#available_urls:has(tbody tr)").tablesorter(
{widgets: ['zebra'], sortList: [[0,0]],
headers: { 6: { sorter: 'mostlydigit' }, 7: { sorter: 'mostlydigit' }, 8: { sorter: 'mostlydigit' } } });
+});
+$(document).ready(function() {
mirror_status("#visualize-mirror", "./json/");
});
</script>