Skip to content

Commit

Permalink
Add demo 'About' exploration.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlip committed Feb 23, 2015
1 parent acc2e9f commit 005d41e
Show file tree
Hide file tree
Showing 6 changed files with 478 additions and 3 deletions.
4 changes: 4 additions & 0 deletions core/controllers/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,17 @@
SITE_NAME = config_domain.ConfigProperty(
'site_name', 'UnicodeString', 'The site name', default_value='SITE_NAME')

# The id of the exploration for the About page.
_ABOUT_EXPLORATION_ID = '14'


class AboutPage(base.BaseHandler):
"""Page with information about Oppia."""

def get(self):
"""Handles GET requests."""
self.values.update({
'ABOUT_EXPLORATION_ID': _ABOUT_EXPLORATION_ID,
'ADMIN_EMAIL_ADDRESS': ADMIN_EMAIL_ADDRESS.value,
'MODERATOR_REQUEST_FORUM_URL': (
editor.MODERATOR_REQUEST_FORUM_URL.value),
Expand Down
10 changes: 10 additions & 0 deletions core/templates/dev/head/pages/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
{% block content %}
<div class="oppia-about-cards-container">
<md-card class="oppia-about-card">
<a class="oppia-about-anchor" name="introduction"></a>
<h2>Introduction</h2>

<p>
Oppia is a tool for creating interactive lessons called 'explorations'.
For a quick general overview of Oppia, click
<a href="/explore/{{ABOUT_EXPLORATION_ID}}">here</a>.
</p>

<a class="oppia-about-anchor" name="community-guidelines"></a>
<h2>Community Guidelines</h2>

Expand Down Expand Up @@ -304,6 +313,7 @@ <h2>Contact</h2>

<div class="nav oppia-about-right-menu hidden-sm hidden-xs">
<h4><strong>Quick links</strong></h4>
<p><a href="#introduction">Introduction</a></p>
<p><a href="#community-guidelines">Community Guidelines</a></p>
<p><a href="#exploration-publishing-criteria">Publishing Criteria</a></p>
<p><a class="oppia-about-right-menu-subnav" href="#publication-criteria">Basic Criteria</a></p>
Expand Down
5 changes: 3 additions & 2 deletions core/templates/dev/head/player/exploration_player.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@
{% block content %}
{{ skin_tag }}
<br><br><br>

{% include 'attribution_guide.html' %}
{% if not iframed %}
{% include 'attribution_guide.html' %}
{% endif %}

<script type="text/ng-template" id="modals/playerFeedback">
<div class="modal-header">
Expand Down
Loading

0 comments on commit 005d41e

Please sign in to comment.