From 79f00ef686e0597cb197ed67ba1462aa60a530bb Mon Sep 17 00:00:00 2001 From: Ismael Carnales Date: Fri, 30 Oct 2009 16:56:21 -0200 Subject: "imported" public app files from archweb_pub --- public/__init__.py | 0 public/views.py | 80 +++++++++++++++++++++ templates/public/about.html | 58 ++++++++++++++++ templates/public/art.html | 78 +++++++++++++++++++++ templates/public/blank.html | 10 +++ templates/public/developer_list.html | 60 ++++++++++++++++ templates/public/developers.html | 16 +++++ templates/public/donate.html | 70 +++++++++++++++++++ templates/public/download.html | 130 +++++++++++++++++++++++++++++++++++ templates/public/fellows.html | 11 +++ templates/public/index.html | 109 +++++++++++++++++++++++++++++ templates/public/irc.html | 63 +++++++++++++++++ templates/public/moreforums.html | 37 ++++++++++ templates/public/projects.html | 28 ++++++++ templates/public/svn.html | 38 ++++++++++ 15 files changed, 788 insertions(+) create mode 100644 public/__init__.py create mode 100644 public/views.py create mode 100644 templates/public/about.html create mode 100644 templates/public/art.html create mode 100644 templates/public/blank.html create mode 100644 templates/public/developer_list.html create mode 100644 templates/public/developers.html create mode 100644 templates/public/donate.html create mode 100644 templates/public/download.html create mode 100644 templates/public/fellows.html create mode 100644 templates/public/index.html create mode 100644 templates/public/irc.html create mode 100644 templates/public/moreforums.html create mode 100644 templates/public/projects.html create mode 100644 templates/public/svn.html diff --git a/public/__init__.py b/public/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/public/views.py b/public/views.py new file mode 100644 index 00000000..1f8e6880 --- /dev/null +++ b/public/views.py @@ -0,0 +1,80 @@ +from django.contrib.auth.models import User +from archweb.main.models import AltForum, Arch, Donor, MirrorUrl, News +from archweb.main.models import Package, Repo, ExternalProject +from django.db.models import Q +from django.shortcuts import render_to_response +from django.views.generic import list_detail + +def index(request): + # get the most recent 10 news items + news = News.objects.order_by('-postdate', '-id')[:10] + pkgs = Package.objects.order_by('-last_update')[:15] + repos = Repo.objects.order_by('name') + arches = Arch.objects.exclude(name__iexact='any').order_by('name') + return render_to_response('public/index.html', + {'news_updates':news,'pkg_updates':pkgs, + 'repos':repos, 'arches': arches, 'path':request.path}) + +def about(request): + return render_to_response('public/about.html') + +def art(request): + return render_to_response('public/art.html') + +def svn(request): + return render_to_response('public/svn.html') + +def projects(request): + projects = ExternalProject.objects.all() + return render_to_response('public/projects.html', {'projects': projects}) + +def developers(request): + devs = User.objects.filter(is_active=True).exclude(userprofile_user__roles="Trusted User").order_by('username') + tus = User.objects.filter(is_active=True, userprofile_user__roles="Trusted User").order_by('username') + return render_to_response('public/developers.html', + {'developers': devs, 'tus': tus}) + +def fellows(request): + return list_detail.object_list(request, + User.objects.filter(is_active=False).order_by('username'), + template_name="public/fellows.html", + template_object_name="dev", + extra_context={"dev_type": "Fellows", + "description": "Below you can find a list of ex-developers" + " (aka Project Fellows). These folks helped make Arch what" + " it is today. Thanks!"}) + +def donate(request): + donor_count = Donor.objects.count() + donors = Donor.objects.order_by('name') + splitval = donor_count / 4 + slice1 = donors[:splitval] + slice2 = donors[(splitval):(splitval*2)] + slice3 = donors[(splitval*2):(donor_count-splitval)] + slice4 = donors[(donor_count-splitval):donor_count] + return render_to_response('public/donate.html', + {'slice1':slice1,'slice2':slice2,'slice3':slice3,'slice4':slice4}) + +def download(request): + qset = MirrorUrl.objects.filter( + Q(protocol__protocol__iexact='HTTP') | Q(protocol__protocol__iexact='FTP'), + mirror__public=True, mirror__active=True, mirror__isos=True + ) + return list_detail.object_list(request, + qset.order_by('mirror__country', 'mirror__name'), + template_name="public/download.html", + template_object_name="mirror_url", + extra_context={"path": request.path}) + +def irc(request): + return render_to_response('public/irc.html') + +def moreforums(request): + return list_detail.object_list(request, + AltForum.objects.order_by('language', 'name'), + template_name="public/moreforums.html", + template_object_name="forum", + extra_context={"path": request.path}) + +# vim: set ts=4 sw=4 et: + diff --git a/templates/public/about.html b/templates/public/about.html new file mode 100644 index 00000000..0e0601e8 --- /dev/null +++ b/templates/public/about.html @@ -0,0 +1,58 @@ +{% extends "base.html" %} +{% block title %}Arch Linux - About{% endblock %} +{% block content %} +
+

About Arch Linux

+

+Arch Linux is an independently developed, i686/x86-64 general purpose GNU/Linux +distribution versatile enough to suit any role. Development focuses on +simplicity, minimalism, and code elegance. Arch is installed as a +minimal base system, configured by the user upon which their own ideal +environment is assembled by installing only what is required or desired +for their unique purposes. GUI configuration utilities are not officially +provided, and most system configuration is performed from the shell by editing +simple text files. Arch strives to stay bleeding edge, and typically offers +the latest stable versions of most software. +

+

+Arch Linux uses its own Pacman package manager, which couples simple binary +packages with an easy-to-use package build system. This allows users to +easily manage and customize packages ranging from official Arch software to the +user's own personal packages to packages from 3rd party sources. The repository +system also allows users to easily build and maintain their own custom build +scripts, packages, and repositories, encouraging community growth and +contribution. +

+

+The minimal Arch base package set resides in the streamlined [core] repository. +In addition, the official [extra], [community], and [testing] repositories +provide several thousand high-quality, packages to meet your software demands. +Arch also offers an [unsupported] section in the Arch Linux User Repository +(AUR), which contains over 9,000 build scripts, for compiling installable +packages from source using the Arch Linux makepkg application. +

+

+Arch Linux uses a "rolling release" system which allows one-time installation +and perpetual software upgrades. It is not generally necessary to reinstall +or upgrade your Arch Linux system from one "version" to the next. +By issuing one command, an Arch system is kept up-to-date and on the bleeding +edge. +

+

+Arch strives to keep its packages as close to the original upstream software as +possible. Patches are applied only when necessary to ensure an application +compiles and runs correctly with the other packages installed on an up-to-date +Arch system. +

+

+To summarize: Arch Linux is a versatile, and simple distribution designed to +fit the needs of the competent Linux® user. It is both powerful and easy +to manage, making it an ideal distro for servers and workstations. Take it in +any direction you like. If you share this vision of what a GNU/Linux +distribution should be, then you are welcomed and encouraged to use it freely, +get involved, and contribute to the community. Welcome to Arch! +

+
+

+{% endblock %} + diff --git a/templates/public/art.html b/templates/public/art.html new file mode 100644 index 00000000..82968e4e --- /dev/null +++ b/templates/public/art.html @@ -0,0 +1,78 @@ +{% extends "base.html" %} +{% block title %}Arch Linux - Artwork{% endblock %} +{% block content %} +
+

Arch Linux Logos and Artwork

+

Official Packages

+

Official logos, artwork, and more are available from the Extra repository. Currently, these packages are:

+ +

Alternatively, you can download the source files via FTP.

+

Former Logos

+

Arch has gone through a few iterations of logos and associated artwork. + Here is a good selection of these logos. Several of the later logos can be + clicked on to get either a larger PNG or SVG version of the logo.

+

Original Ribbon Logos

+

+ + + +

+

+ + + +

+

"Arch Blue" Logos

+

+ + + + + + + + +

+

"Arch Aqua" Logos

+

+ + + + + + + + + +

+

Release-specific Logos

+

+ + + +

+

+ + + + + + + + + + + + +

+
+{% endblock %} + diff --git a/templates/public/blank.html b/templates/public/blank.html new file mode 100644 index 00000000..f0bcedf4 --- /dev/null +++ b/templates/public/blank.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} + +{% block content %} +
+

Download Arch Linux

+

+
+

+{% endblock %} + diff --git a/templates/public/developer_list.html b/templates/public/developer_list.html new file mode 100644 index 00000000..8d1c5be5 --- /dev/null +++ b/templates/public/developer_list.html @@ -0,0 +1,60 @@ +

+
+ {% for dev in dev_list %} + {{ dev.first_name }}{{ dev.last_name.0|capfirst}}   + {% endfor %} +


+ + + {% for dev in dev_list %} + + + + {% endfor %} +
+ + + + {% autoescape off %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Name:{{ dev.get_full_name }}
Alias:{{ dev.get_profile.alias }}
Email:{{ dev.get_profile.public_email }}
Other Contact:{{ dev.get_profile.other_contact }}
Roles:{{ dev.get_profile.roles }}
+
Website:{{ dev.get_profile.website }}
Occupation:{{ dev.get_profile.occupation }}
YOB:{% if dev.get_profile.yob %}{{ dev.get_profile.yob }}{% else %} {% endif %}
Location:{{ dev.get_profile.location }}
Languages:{{ dev.get_profile.languages }}
Interests:{{ dev.get_profile.interests }}
Favorite Distros:{{ dev.get_profile.favorite_distros }}
+ {% endautoescape %} +
diff --git a/templates/public/developers.html b/templates/public/developers.html new file mode 100644 index 00000000..f2905876 --- /dev/null +++ b/templates/public/developers.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block content %} +
+

Arch Linux Core Developers

+ {% with developers as dev_list %} + {% include 'public/developer_list.html' %} + {% endwith %} +

Arch Linux Trusted Users

+ {% with tus as dev_list %} + {% include 'public/developer_list.html' %} + {% endwith %} +
+

+{% endblock %} + diff --git a/templates/public/donate.html b/templates/public/donate.html new file mode 100644 index 00000000..263fede9 --- /dev/null +++ b/templates/public/donate.html @@ -0,0 +1,70 @@ +{% extends "base.html" %} +{% block title %}Arch Linux - Donors{% endblock %} +{% block content %} +
+

Donate to Arch Linux

+

+ Arch Linux survives because of the tireless efforts of many people in + the community and the core development circle. None of us are paid for our + work, and we don't have the personal funds to sustain server costs ourselves. +

+ There are many ways to help Arch Linux. If technical development, + documentation, or support aren't your strong points, you could certainly + help us by dropping a few bucks our way. +

+ Many thanks! +

+
+ +
+ + + + + + + + + + + + +
+
+
+

Sponsors and Contributions

+

We'd like to thank Velocity Network for contributing space in a server rack, bandwidth, and electricity for our main server for the last couple of years.

+ velocity network - it's about time +
+

We also wish to extend a special Thank You to SevenL Networks for their generous and ongoing contribution of a dedicated Arch Linux server. You too can have a dedicated Arch Linux server hosted by SevenL...head over to their website for more details.

+ We would like to express our thanks to SevenL Networks for their generous contribution +
+

Past Donors

+ + + + + + + +
+ {% for donor in slice1 %} + {{ donor.name }}
+ {% endfor %} +
+ {% for donor in slice2 %} + {{ donor.name }}
+ {% endfor %} +
+ {% for donor in slice3 %} + {{ donor.name }}
+ {% endfor %} +
+ {% for donor in slice4 %} + {{ donor.name }}
+ {% endfor %} +
+
+

+{% endblock %} + diff --git a/templates/public/download.html b/templates/public/download.html new file mode 100644 index 00000000..1fb1af65 --- /dev/null +++ b/templates/public/download.html @@ -0,0 +1,130 @@ +{% extends "base.html" %} + +{% block content %} +
+

Release Info

+
+

For new installations only.
+ An Arch Linux system can always be updated with `pacman -Syu`

+ + Current Release: 2009.08
+ Included Kernel: 2.6.28-ARCH
+ Resources: + Bug Tracker + - + Mailing List +
+
+ Links and Instructions:
+ + Downloading Instructions + +
+ + Arch Linux Install Guide + +
+ + USB Image help + +
+

BitTorrent Download (recommended)

+
+

If you can spare the bytes, please leave the client + open after your
download is finished, so you can seed + it back to others.

+ +

A web-seed capable client is recommended for fastest download + speeds

+ + FTP ISOs: + i686 + - + x86_64 +
+ + Core ISOs: + i686 + - + x86_64 +
+ + FTP USB Images: + i686 + - + x86_64 +
+ + Core USB Images: + i686 + - + x86_64 +
+ + ISOLINUX ISOs: + i686 + - + x86_64 + +
+

Buy A CD

+
+ These suppliers donate a small percentage of each CD purchased to + the Arch Linux project: + + + +
+ + Purchase CD from OSDisc +
+ + Purchase CD from Shop Linux Online +
+ You can also purchase Arch on CD from these suppliers: + + + +
+ Purchase CD from LinuxCD +
+
+ + +

HTTP/FTP Download

+
+

In addition to the BitTorrent links above, ISO images can also be downloaded
+ via HTTP or FTP from the mirror sites listed below.

+ +

Please ensure the download image matches the checksum from the
+ md5sums.txt or sha1sums.txt file in the same directory as the image.

+

Checksums

+

+ SHA1 +
+ MD5 +

+ + + + + +

Mirror Sites

+ {% for mirror_url in mirror_url_list %} + {% ifchanged mirror_url.mirror.country %} +

{{mirror_url.mirror.country}}

+ {% endifchanged %} + {% ifchanged mirror_url.mirror.name %} +
{{mirror_url.mirror.name}} + {% endifchanged %} + ({{mirror_url.protocol.protocol}}) + {% endfor %} +
+

If you want to become an Official Arch Linux Mirror please follow
+ the instructions listed here. +

+
+
+

+{% endblock %} + diff --git a/templates/public/fellows.html b/templates/public/fellows.html new file mode 100644 index 00000000..4bbda775 --- /dev/null +++ b/templates/public/fellows.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block content %} +
+

Arch Linux {{dev_type}}

+ {{description}} + {% include 'public/developer_list.html' %} +
+

+{% endblock %} + diff --git a/templates/public/index.html b/templates/public/index.html new file mode 100644 index 00000000..e092e289 --- /dev/null +++ b/templates/public/index.html @@ -0,0 +1,109 @@ +{% extends "base.html" %} + +{% block head %} + + +{% endblock %} + +{% block content_left %} +
+

Welcome to Arch!

+

+ You've reached the website for Arch Linux, a lightweight + and flexible Linux® distribution that tries to Keep It Simple. +

+ Currently we have official packages optimized for the i686 and x86-64 + architectures. We complement our official package sets with a + community-operated package repository + that grows in size and quality each and every day. +

+ Our strong community is diverse and helpful, and we pride ourselves on + the range of skillsets and uses for Arch that stem from it. Please + check out our forums and + mailing lists + to get your feet wet. Also glance through our wiki + if you want to learn more about Arch. +

+ Learn more... +

+
+

+
+ RSS Feed +
+

Latest News

+
+ {% for news in news_updates %} +
+ {{ news.postdate }} +

{{ news.title }}

+

{{ news.content|striptags|truncatewords:60 }}

+
+ {% endfor %} + More News... +

+
+{% endblock %} + +{% block content_right %} + +
+ + + + + + {% for pkg in pkg_updates %} + + + + + {% endfor %} + + + +

Recent Updates

RSS Feed
{{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}{{ pkg.arch.name }}

More...
+
+
+

Documentation:

+ +

Support Arch:

+ +

Community Links:

+ +

Development:

+ + velocity network - it's about time + We would like to express our thanks to SevenL Networks for their generous contribution +{% endblock %} diff --git a/templates/public/irc.html b/templates/public/irc.html new file mode 100644 index 00000000..ce69630a --- /dev/null +++ b/templates/public/irc.html @@ -0,0 +1,63 @@ +{% extends "base.html" %} +{% block title %}Arch Linux - IRC Channels{% endblock %} +{% block content %} +
+

IRC Channels

+

+

You can find Arch-related discussion on the following IRC channels. + All channels are on irc.freenode.net

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#archlinuxThe main discussion channel, mostly in English
#archlinux64x86_64 specific discussion channel, mostly in English
#archlinux-pacmanPacman development and discussion
#archlinux-bugsBug-centric discussion
#archlinuxfrDiscussion (French)
#archlinux.deDiscussion (German)
#archlinux.seDiscussion (Swedish)
#archlinux.dkDiscussion (Danish)
#archlinux-esDiscussion (Spanish)
#archlinux.brDiscussion (Brazilian)
#archlinux.itDiscussion (Italian)
#archlinux.roDiscussion (Romanian)
#archlinux.trDiscussion (Turkish)
#archlinux.huDiscussion (Hungarian)
#archlinux-plDiscussion (Polish)
#archlinux-offtopicRandom offtopic discussions.
+
+

+{% endblock %} + diff --git a/templates/public/moreforums.html b/templates/public/moreforums.html new file mode 100644 index 00000000..91ab4209 --- /dev/null +++ b/templates/public/moreforums.html @@ -0,0 +1,37 @@ +{% extends "base.html" %} +{% block title %}Arch Linux - International Communities{% endblock %} +{% block content %} +
+

International Communities

+

+

+ www.archlinux.org is the home of + the official Arch Linux website, forums, and wiki. However, several + unofficial community-run sites are available for international users who + would rather communicate in their own language. You can find a list of + these communities below. +

+

+ Please note that the official Wiki + also supports internationalized content. In addition, we have a forum where + you can post in your native language. These tools can be used in addition + to, in parallel with, or as a part of the international communities listed + below. +

+ + {% for forum in forum_list %} + + + + + {% endfor %} +
{{ forum.language }}{{ forum.name }}
+
+ If you host a community you would like linked on this page, please open a + Bug Ticket with the category "web + site", and a relevant description. +
+

+{% endblock %} + diff --git a/templates/public/projects.html b/templates/public/projects.html new file mode 100644 index 00000000..c6ff271a --- /dev/null +++ b/templates/public/projects.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} +{% block title %}Arch Linux - Projects{% endblock %} +{% block content %} +
+

Arch Related Projects

+

+

There are a few Arch-based projects or communities that have sprung up + over the years. Here's a list of the ones we know about.

+ + {% for project in projects %} + + + + + {% endfor %} +
{{project.name}}{{project.description}}
+
+
+ If you have an Arch related project you would like linked, please open + a Bug Ticket with the category + "web site", and a relevant description.
Also please let us know if you + think any of the projects above is defunct so we can keep it new and + exciting. +
+
+

+{% endblock %} + diff --git a/templates/public/svn.html b/templates/public/svn.html new file mode 100644 index 00000000..1f900c2c --- /dev/null +++ b/templates/public/svn.html @@ -0,0 +1,38 @@ +{% extends "base.html" %} +{% block title %}Arch Linux - SVN{% endblock %} +{% block content %} +
+

SVN Repositories

+

+ The PKGBUILD files can be fetched via the ABS utility. To learn more + about ABS, see the ABS wiki page. +

+

+ You can view the history of all the PKGBUILD files from the Repository + WebSVN interface. +

+

+ You can also get individual PKGBUILDs directly from SVN. This can be + especially useful if you need to compile an older version of a package. + DO NOT CHECK OUT THE ENTIRE SVN REPO. Your address may be + blocked. Use the following commands to check out a specific package: +

+
+        svn checkout --depth=empty svn://svn.archlinux.org/packages
+        cd packages
+        svn update <your-package-name>
+    
+ For the community repository, use the following commands instead: +
+        svn checkout --depth=empty svn://svn.archlinux.org/community
+        cd community
+        svn update <your-package-name>
+    
+

+ Visit the wiki for more tips on checking out and updating svn PKGBUILDs. +

+ +
+

+{% endblock %} + -- cgit v1.2.3-55-g3dc8