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 @@
{{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 %} -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.
- -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.
- -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.
+By {{news_entry.author.username}} on {{news_entry.date_posted|time}}
+{{news_entry.body}}
{% endblock %} \ No newline at end of file