diff --git a/apps/news/views.py b/apps/news/views.py index 0535f4ffe1..02dc65ea52 100755 --- a/apps/news/views.py +++ b/apps/news/views.py @@ -12,10 +12,11 @@ def show_news(request, entry_id): """ Show an individual news entry. """ - #news_entries = NewsEntry.objects.all().order_by('-date_posted')[:10] + news_entry = get_object_or_404(NewsEntry, id=entry_id) pagevars = { "page_title": "News Entry", + "news_entry": news_entry } context_instance = RequestContext(request) diff --git a/webtemplates/prosimii/index.html b/webtemplates/prosimii/index.html index 1bce140248..d60f82f146 100644 --- a/webtemplates/prosimii/index.html +++ b/webtemplates/prosimii/index.html @@ -22,8 +22,8 @@

Latest News

{% for entry in news_entries %} - {{entry.title}} -

{{entry.date_posted|time}}

+ {{entry.topic.name}}: {{entry.title}} +

By {{entry.author.username}} on {{entry.date_posted|time}}

{{entry.body|truncatewords:20}}

{% endfor %} diff --git a/webtemplates/prosimii/news/show_entry.html b/webtemplates/prosimii/news/show_entry.html index c3a26b9714..2df719a20c 100644 --- a/webtemplates/prosimii/news/show_entry.html +++ b/webtemplates/prosimii/news/show_entry.html @@ -14,53 +14,7 @@ {% endblock %} {% block content %} -

Alternative Layout

-

This is an alternative layout of Prosimii. Notice the presence of a - side menu on the left of page. If you are viewing this page in a fully standards-compliant browser, the side - menu will scroll with the page. If you are viewing in Internet Explorer, however, the menu - will appear stationary.

- -

The following text is essentially the same as the previous page except elaborated.

- -

Improved Cross-browser Compatibility

-

Before Prosimii, I did not test my designs in Opera prior to submitting - them to OSWD. As a result, these templates don’t render properly in that browser. In - contrast, Prosimii has been fully tested in - Opera (7.01), Gecko - (Mozilla Firefox 0.10.1) - and Internet Explorer (6.0) for consistent rendering.

- -

This means that people using standards-compliant browsers - will see the same format and layout of your page.

- -

Comprehensive Stylesheets

-
-
More robust screen stylesheet
-
The improved cross-browser consistency is a result of - Prosimii’s more comprehensive screen stylesheet. Major style - parameters are explicitly defined in the stylesheet, resulting in less dependence on - browser-determined defaults and thus fewer rendering idiosyncrasies.
-
Addition of a print media stylesheet
-
Prosimii has a print media stylesheet that styles the page in a - format appropriate for black and white printing. To see the effect of this stylesheet, - select print preview from the - file menu, or direct this page to a printer (NB: print only - this frame if you are viewing this template in a multi-frame document). Alternatively, - if you're using Firefox, use the stylesheet switcher - in the bottom right-hand corner of the browser window.
-
- -

Accessibility Features

-

Prosimii incorporates accessibility features for people with impaired - vision. The template tentatively conforms to the - WCAG double A rating and - § 508 guidelines for web content - accessibility. The relative simplicity of the template’s underlying markup ensures that - your page can be easily transformed for rendering in aural, tactile (braille) and other - non-visual user agents.

- -

Additionally, the majority of document metrics (widths, lengths and spacings) are font-size - relative. This means that a user can increase the default font size of your page (using their - browser) without compromising it’s layout.

+

{{news_entry.topic.name}}: {{news_entry.title}}

+

By {{news_entry.author.username}} on {{news_entry.date_posted|time}}

+

{{news_entry.body}}

{% endblock %} \ No newline at end of file