From 9a51f457e8d4a1b35a424a4c8b6e60bce5fe5cd0 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 4 Dec 2011 21:45:44 -0500 Subject: Adjust README (fix markdown, remove hack for bad groups.json) --- README | 71 ++++++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/README b/README index 9cf699b3..d95574b7 100644 --- a/README +++ b/README @@ -15,12 +15,16 @@ See AUTHORS file. # Dependencies - python2 -- python2-virtualenv +- python2-virtualenv (if using pip to manage dependencies) # Python dependencies We're going to use pip to handle python dependencies, m'kay? Worry about that in step 3. + +If you really want to manage dependencies using something other than +pip, look at `requirements.txt`, and at the comments on other +dependiencies in step 3. # Testing Installation @@ -30,76 +34,75 @@ main server, it's in `/srv/http/web'. Wherever you see this in a command, know that you should just replace it with the correct path for your install. -1. Run `virtualenv2`. +1. Run `virtualenv2`. $ cd /path/to/parabolaweb && virtualenv2 `pwd`-env - Here I just had you use `pwd` to choose the environment - directory. You can use anything, but it is recommended that it not - be the same directory as the install. + Here I just had you use `pwd` to choose the environment + directory. You can use anything, but it is recommended that it not + be the same directory as the install. -2. Activate the virtualenv. +2. Activate the virtualenv. $ source `pwd`-env/bin/activate -3. Fix symlink to the environment +3. Fix symlink to the environment (parabolaweb-env) $ ln -sf ../../parabolaweb-env/lib/python2.7/site-packages/django/contrib/admin/media media/admin_media - Of course change `../../parabolaweb-env` to the relative path to - your environment. Keep in mind that the path is relative from - inside the `media/` directory, not the current directory. + Of course change `../../parabolaweb-env` to the relative path to + your environment. Keep in mind that the path is relative from + inside the `media/` directory, not the current directory. + +4. Install dependencies through `pip`. -4. Install dependencies through `pip`. + To install base dependencies, run - To install base dependencies, run (parabolweb-env) $ pip install -r requirements.txt - After that you will need to install a database engine for python. - This means `MySQL-python==1.2.3`, `pysqlite` or `psycopg2` for PostgreSQL. - Eg: + After that you will need to install a database engine for python + This means `MySQL-python==1.2.3`, `pysqlite` or `psycopg2` for + PostgreSQL. Eg: + (parabolweb-env) $ pip install MySQL-python==1.2.3 - You may also want to install memcached + You may also want to install memcached + (parabolweb-env) $ pip install python-memcached==1.47 - Alternately, to have MySQL and memcached installed automatically, run + Alternately, to have MySQL and memcached installed automatically, + run + (parabolweb-env) $ pip install -r requirements_prod.txt -5. Copy `local_settings.py.example` to `local_settings.py` and modify. - Make sure to uncomment the appropriate db section (either sqlite or mysql). +5. Copy `local_settings.py.example` to `local_settings.py` and modify. + Make sure to uncomment the appropriate db section. -6. Sync the database to create it. +6. Sync the database to create it. (parabolaweb-env) $ ./manage.py syncdb -7. Migrate changes. +7. Migrate changes. (parabolaweb-env) $ ./manage.py migrate -8. Load the fixtures to prepopulate some data. If you don't want some of the - provided data, adjust the file glob accordingly. - - (parabolaweb-env) $ for file in */fixtures/*.json; do \ - ./manage.py loaddata $file; \ - done +8. Load the fixtures to prepopulate some data. If you don't want some + of the provided data, adjust the file glob accordingly. - The reason we use a loop instead of just calling them with a glob - is that groups.json is expected to fail, and this way it won't - prevent others from loading. + (parabolaweb-env) $ ./manage.py loaddata */fixtures/*.json -9. Use the following commands to start a service instance +9. Use the following commands to start a service instance (parabolaweb-env) $ ./manage.py runserver -10. To optionally populate the database with real data: +10. To optionally populate the database with real data: $ wget https://repo.parabolagnulinux.org/core/os/i686/core.db.tar.gz $ ./manage.py reporead i686 core.db.tar.gz $ ./manage.py syncisos -Alter architecture and repo to get x86\_64 and packages from other repos if -needed. + Alter architecture and repo to get x86\_64 and packages from + other repos if needed. # Production Installation -- cgit v1.2.3-2-g168b From dcd9c6709a67a90b7a0d3c2772b6436212966213 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 4 Dec 2011 21:46:25 -0500 Subject: in requirements_prod.txt: drop MySQL-python for psycopg2 --- requirements_prod.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_prod.txt b/requirements_prod.txt index 47d37ce2..9c13492d 100644 --- a/requirements_prod.txt +++ b/requirements_prod.txt @@ -1,6 +1,6 @@ Django==1.3.1 Markdown==2.0.3 -MySQL-python==1.2.3 +psycopg2 South==0.7.3 pyinotify==0.9.2 python-memcached==1.47 -- cgit v1.2.3-2-g168b From 48e53e5a91f43ac1ee4ec443f65a31af5c607797 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 4 Dec 2011 22:03:03 -0500 Subject: strip https: from another URL --- packages/templatetags/package_extras.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py index 66fb5e7c..a2f2387e 100644 --- a/packages/templatetags/package_extras.py +++ b/packages/templatetags/package_extras.py @@ -123,7 +123,7 @@ def bug_report(package): @register.simple_tag def flag_unfree(package): - url = "https://bugs.parabolagnulinux.org/bugs/issue" + url = "//bugs.parabolagnulinux.org/bugs/issue" data = { '@template': 'item', 'keyword': 'packages,unfree', -- cgit v1.2.3-2-g168b From a7e4df04aad4890dc40f61126fca199657b83342 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 4 Dec 2011 22:04:47 -0500 Subject: Fix a URL that was still pointing to kiwwwi.org --- templates/mirrors/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/mirrors/index.html b/templates/mirrors/index.html index 7091229e..76b721d9 100644 --- a/templates/mirrors/index.html +++ b/templates/mirrors/index.html @@ -28,8 +28,8 @@

Customized by country mirrorlist

The following form can generate a custom up-to-date - pacman mirrorlist based on geography and + pacman + mirrorlist based on geography and desired protocol(s). Simply replace the contents of /etc/pacman.d/mirrorlist with your generated list. Additionally, the mirror status data can be incorporated into the generated -- cgit v1.2.3-2-g168b From b19e10cddf08824b00a0db5de120f9f31d465490 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 4 Dec 2011 22:06:02 -0500 Subject: Fix 5 missed instances of `Arch Linux' that slipped through. One of these even predates the latest merge. --- templates/mirrors/index.html | 4 ++-- templates/packages/signoff_options.html | 2 +- templates/public/keys.html | 4 ++-- templates/visualize/index.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/mirrors/index.html b/templates/mirrors/index.html index 76b721d9..c77bf44d 100644 --- a/templates/mirrors/index.html +++ b/templates/mirrors/index.html @@ -7,8 +7,8 @@

Pacman Mirrorlist Generator

-

This page generates the most up-to-date mirrorlist possible for Arch - Linux. The data used here comes straight from the developers' internal +

This page generates the most up-to-date mirrorlist possible for + Parabola. The data used here comes straight from the developers' internal mirror database used to track mirror availability and tiering. There are two main options: get a mirrorlist with every available mirror, or get a mirrorlist tailored to your geography.

diff --git a/templates/packages/signoff_options.html b/templates/packages/signoff_options.html index ee9b8b47..950c80c1 100644 --- a/templates/packages/signoff_options.html +++ b/templates/packages/signoff_options.html @@ -1,6 +1,6 @@ {% extends "base.html" %} -{% block title %}Arch Linux - Package Signoff Options - {{ package.pkgbase }} {{ package.full_version }} ({{ package.arch.name }}){% endblock %} +{% block title %}Parabola - Package Signoff Options - {{ package.pkgbase }} {{ package.full_version }} ({{ package.arch.name }}){% endblock %} {% block head %}{% endblock %} {% block navbarclass %}anb-packages{% endblock %} diff --git a/templates/public/keys.html b/templates/public/keys.html index 2e7fcebe..20b91749 100644 --- a/templates/public/keys.html +++ b/templates/public/keys.html @@ -1,13 +1,13 @@ {% extends "base.html" %} {% load pgp %} -{% block title %}Arch Linux - Master Signing Keys{% endblock %} +{% block title %}Parabola - Master Signing Keys{% endblock %} {% block content %}

Master Signing Keys

-

This page lists the Arch Linux Master Keys. This is a distributed set of +

This page lists the Parabola Master Keys. This is a distributed set of keys that are seen as "official" signing keys of the distribution. Each key is held by a different developer, and a revocation certificate for the key is held by a different developer. Thus, no one developer has absolute hold diff --git a/templates/visualize/index.html b/templates/visualize/index.html index 99525e69..cc4593d2 100644 --- a/templates/visualize/index.html +++ b/templates/visualize/index.html @@ -1,6 +1,6 @@ {% extends "base.html" %} -{% block title %}Arch Linux - Visualizations{% endblock %} +{% block title %}Parabola - Visualizations{% endblock %} {% block content %}

-- cgit v1.2.3-2-g168b From 8dc03a1875382b7898c12647caee783a6f35f081 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 4 Dec 2011 22:09:35 -0500 Subject: revert /media/media_admin to point to the system install of django --- media/admin_media | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/admin_media b/media/admin_media index 3d6781eb..585cf837 120000 --- a/media/admin_media +++ b/media/admin_media @@ -1 +1 @@ -../../web-env/lib/python2.7/site-packages/django/contrib/admin/media/ \ No newline at end of file +/usr/lib/python2.7/site-packages/django/contrib/admin/media \ No newline at end of file -- cgit v1.2.3-2-g168b From 7e7ef807910331b652fcb98042060d68155b9a76 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 4 Dec 2011 22:34:53 -0500 Subject: I think this should fix all css problems. --- media/archweb.css | 160 ++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 125 insertions(+), 35 deletions(-) diff --git a/media/archweb.css b/media/archweb.css index cb962648..bfb712f8 100644 --- a/media/archweb.css +++ b/media/archweb.css @@ -53,7 +53,7 @@ pre { border: 1px solid #bdb; background: #dfd; padding: 0.5em; - margin: 0.25em 2em; + margin: 1em; } pre code { @@ -70,18 +70,15 @@ input { } select[multiple] { - padding-top: 1px; - padding-bottom: 1px; + padding: 1px 0; } select[multiple] option { - padding-left: 0.3em; - padding-right: 0.5em; + padding: 0 0.5em 0 0.3em; } input[type=submit] { - padding-left: 0.6em; - padding-right: 0.6em; + padding: 0 0.6em; } .clear { @@ -134,7 +131,7 @@ h2 { h3 { font-size: 1.25em; - margin-top: 1em; + margin-top: .5em; } h4 { @@ -266,6 +263,25 @@ table.pretty2 { border: 1px dotted #bbb; } +/* definition lists */ +dl { + clear: both; +} + + dl dt, + dl dd { + margin-bottom: 4px; + padding: 8px 0px 4px; + font-weight: bold; + border-top: 1px dotted #bbb; + } + + dl dt { + color: #333; + float:left; + padding-right:15px; + } + /* forms and input styling */ form p { margin: 0.5em 0; @@ -358,7 +374,8 @@ ul.errorlist { } #news h3 { - border-bottom: 1px solid #888; + float: left; + padding-bottom: .5em } #news div { @@ -375,10 +392,11 @@ ul.errorlist { #news .rss-icon { float: right; - margin: -1.6em 0.4em 0 0; + margin-top: 1em; } #news h4 { + clear: both; font-size: 1em; margin-top: 1.5em; border-bottom: 1px dotted #bbb; @@ -390,6 +408,31 @@ ul.errorlist { margin: -1.8em 0.5em 0 0; } +/* home: arrowed headings */ +#news h3 a { + display: block; + background: #787DAB; + font-size: 15px; + padding: 2px 10px; + color: white; +} + + #news a:active { + color: white; + } + +h3 span.arrow { + display: block; + width: 0px; + height: 0px; + border-left: 6px solid transparent; + border-right: 6px solid transparent; + border-top: 6px solid #787DAB; + margin: 0 auto; + font-size: 0px; + line-height: 0px; +} + /* home: pkgsearch box */ #pkgsearch { padding: 1em 0.75em; @@ -493,8 +536,7 @@ div.widget { .news-nav .prev, .news-nav .next { - margin-left: 1em; - margin-right: 1em; + margin: 0 1em; } /* news: article pages */ @@ -526,7 +568,7 @@ div#donor-list ul { /* download page */ #arch-downloads h3 { - border-bottom: 1px dotted #aaa; + border-bottom: 1px dotted #bbb; } table#download-torrents .cpu-arch { @@ -566,18 +608,6 @@ table.results { background-color:#fff; } - table.results td { - padding: .3em 1em .3em 3px; - } - - table.results tr.odd { - background: #fff; - } - - table.results tr.even { - background: #e4eeff; - } - /* additional styles for JS sorting */ table.results th.header { padding-right: 20px; @@ -597,6 +627,18 @@ table.results { background-image: url(asc.gif); } + table.results td { + padding: .3em 1em .3em 3px; + } + + table.results tr.odd { + background: #fff; + } + + table.results tr.even { + background: #e4eeff; + } + table.results .flagged { color: red; } @@ -697,6 +739,10 @@ form#flag-pkg-form input[type=text] { } /* pkgdetails: deps, required by and file lists */ +#pkgdetails #metadata { + clear: both; +} + #pkgdetails #metadata h3 { background: #555; color: #fff; @@ -756,6 +802,10 @@ div#arch-bio-toc { text-align: center; } + div#arch-bio-toc a { + white-space: nowrap; + } + table.arch-bio-entry td.pic { vertical-align: top; padding-right: 15px; @@ -784,7 +834,6 @@ table.arch-bio-entry table.bio { } /* dev: login/out */ -p.login-error {} table#dev-login { width: auto; } @@ -795,7 +844,7 @@ form#dash-pkg-notify { padding: 1em 0 0; margin-top: 1em; font-size: 0.85em; - border-top: 1px dotted #aaa; + border-top: 1px dotted #bbb; } form#dash-pkg-notify label { @@ -850,24 +899,31 @@ ul.admin-actions { } /* dev: signoff page */ -#dev-signoffs ul { +#dev-signoffs tr:hover { + background: #ffd; +} + +ul.signoff-list { list-style: none; margin: 0; padding: 0; } -#dev-signoffs .signoff-yes { +.signoff-yes { color: green; font-weight: bold; } -#dev-signoffs .signoff-no { +.signoff-no { color: red; } -#dev-signoffs .signed-username { - color: #888; - margin-left: 0.5em; +.signoff-bad { + color: darkorange; +} + +.signoff-disabled { + color: gray; } /* iso testing feedback form */ @@ -886,8 +942,15 @@ ul.admin-actions { } #releng-feedback ul+.helptext { - position: relative; - top: -0.9em; + position: relative; top: -0.9em; +} + +#releng-result .success-yes { + color: green; +} + +#releng-result .success-no { + color: red; } /* highlight current website in the navbar */ @@ -896,3 +959,30 @@ ul.admin-actions { #archnavbar.anb-download ul li#anb-download a { color: white !important; } + +/* visualizations page */ +.visualize-buttons { + margin: 0.5em 0.33em; +} + + .visualize-buttons button.active { + depressed: true; + } + +.visualize-chart { + position: relative; + height: 500px; + margin: 0.33em; +} + +#visualize-archrepo .treemap-cell { + border: solid 1px white; + overflow: hidden; + position: absolute; +} + + #visualize-archrepo .treemap-cell span { + padding: 3px; + font-size: 0.85em; + line-height: 1em; + } -- cgit v1.2.3-2-g168b