Skip to content

Commit

Permalink
Merged in changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
keokilee committed Apr 13, 2012
2 parents e4c4594 + cfbff96 commit d35bf0d
Show file tree
Hide file tree
Showing 36 changed files with 520 additions and 152 deletions.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 4 additions & 0 deletions bootstrap-cam/iphone-ipad.html → caminator/iphone-ipad.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<!doctype html>
<html lang="en-us">
<head>
<!--
Borrowed from http://www.responsinator.com/ written by @andyhovey
and @tamapugsley. Modified to test Makahiki2.
-->
<meta charset="utf-8">
<title>Test Sizes</title>
<link rel="stylesheet" media="screen" href="css/main.css">
Expand Down
8 changes: 4 additions & 4 deletions makahiki/apps/pages/templates/energy.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
{% endblock %}

{% block body %}
<div {% get_id_and_classes "energy-body" "responsive" %}>
<div {% get_id_and_classes "base-row" "responsive" %}>
<div class="container-fluid">
<div class="row-fluid">
<!-- left column -->
<div {% get_id_and_classes "narrow-col" "responsive" %}>
<div class="span5">
<div id='energy_power_meter'>
{% include "widgets/energy_power_meter/templates/index.html" %}
</div>
Expand All @@ -26,7 +26,7 @@
</div>
</div>
<!-- right column -->
<div {% get_id_and_classes "wide-col" "responsive" %}>
<div class="span7">
<div id='energy_goal'>
{% include "widgets/energy_goal/templates/index.html" %}
</div>
Expand Down
8 changes: 4 additions & 4 deletions makahiki/apps/pages/templates/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
{% endblock %}

{% block body %}
<div {% get_id_and_classes "help-body" "responsive" %}>
<div {% get_id_and_classes "base-row" "responsive" %}>
<div class="container-fluid">
<div class="row-fluid">
<!-- left column -->
<div {% get_id_and_classes "even-col" "responsive" %}>
<div class="span6">
<div id='help_intro'>
{% include "widgets/help/intro/templates/index.html" %}
</div>
Expand All @@ -25,7 +25,7 @@
</div>
</div>
<!-- right column -->
<div {% get_id_and_classes "even-col" "responsive" %}>
<div class="span6">
<div id='help_rule'>
{% include "widgets/help/rule/templates/index.html" %}
</div>
Expand Down
4 changes: 3 additions & 1 deletion makahiki/apps/pages/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
{% endblock %}

{% block body %}
<div id="home" class="container-fluid">
<div class="content">
<div id="home" class="container">
{% include "widgets/home/templates/index.html" %}
</div>
</div>
{% endblock %}
8 changes: 4 additions & 4 deletions makahiki/apps/pages/templates/learn.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
{% endblock %}

{% block body %}
<div {% get_id_and_classes "activity-body" "responsive" %}>
<div {% get_id_and_classes "base-row" "responsive" %}>
<div class="container-fluid">
<div class="row-fluid">
<!-- left column -->
<div {% get_id_and_classes "narrow-col" "responsive" %}>
<div class="span5">
<div id='upcoming_events'>
{% include "widgets/upcoming_events/templates/index.html" %}
</div>
Expand All @@ -25,7 +25,7 @@
</div>
</div>
<!-- right column -->
<div {% get_id_and_classes "wide-col" "responsive" %}>
<div class="span7">
<div id='smartgrid'>
{% include "widgets/smartgrid/templates/index.html" %}
</div>
Expand Down
8 changes: 4 additions & 4 deletions makahiki/apps/pages/templates/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
{% endblock %}

{% block body %}
<div {% get_id_and_classes "news-body" "responsive" %}>
<div {% get_id_and_classes "base-row" "responsive" %}>
<div class="container-fluid">
<div class="row-fluid">
<!-- left column -->
<div {% get_id_and_classes "even-col" "responsive" %}>
<div class="span6">
<div id='team_members'>
{% include "widgets/team_members/templates/index.html" %}
</div>
Expand All @@ -25,7 +25,7 @@
</div>
</div>
<!-- right column -->
<div {% get_id_and_classes "even-col" "responsive" %}>
<div class="span6">
<div id='upcomping_events'>
{% include "widgets/upcoming_events/templates/index.html" %}
</div>
Expand Down
9 changes: 5 additions & 4 deletions makahiki/apps/pages/templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@
<!-- My Info -->
<div class="content-box">
{% include "widgets/my_info/templates/index.html" %}
</div>
</div>
</div>

<!-- right column -->
<div class="span6">

<!-- My Badges -->
<div class="content-box">
{% include "widgets/badges/templates/index.html" %}
</div>
</div>
<!-- right column -->
<div class="span6">

<!-- My Public Commitment-->
<div class="content-box">
Expand Down
20 changes: 2 additions & 18 deletions makahiki/apps/widgets/badges/templates/badge-catalog.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
{% extends "logged_in_base.html" %}

{% load class_tags %}

{% block page_title %}
Badge Catalog
{% endblock %}

{% block selected_icon %}selected-profile{% endblock %}

{% block extra_head %}
{% import_page_css "profile" STATIC_URL CSS_THEME %}
{% endblock %}

{% block body %}
<div class="content-box">

<div class="content-box-title">
Badge Catalog
</div>
Expand Down Expand Up @@ -43,5 +28,4 @@

<a href="{% url profile_index %}">Back to profile</a>
</div>
</div>
{% endblock %}

87 changes: 48 additions & 39 deletions makahiki/apps/widgets/badges/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,41 +1,50 @@
{% load class_tags %}

<div class="content-box">
<div class="content-box-title">
My Badges
<a href="#" style="float: right">
<img src="{{ STATIC_URL}}/css/default/images/icon-help-sm.png" width="20"
align="center"
title="Click to get help about this window"
onclick="toggleHelp('widget', 'my-badges'); return false;"
/></a>
</div>
<div class="content-box">
{# <h5>Individual Badges</h5> #}
<table>
<tr>
<th id="profile-user-badge-image-header"></th>
<th>Badge</th>
<th>
Achievement
</th>
</tr>
{% if user.badges_earned.count > 0 %}
{% for awarded in user.badges_earned.all %}
<tr>
<td><img src="{{STATIC_URL}}{{awarded.badge.image}}"/></td>
<td>{{ awarded.badge.name }}</td>
<td>{{ awarded.badge.description.0 }}</td>
</tr>
{% endfor %}
{% else %}
<tr>
<td colspan="3">You don't have any badges yet!</td>
</tr>
{% endif %}
</table>
<div >
<a href="{% url profile_badges %}">See Badge Catalog</a>
</div>
</div>
</div>
<div class="content-box-title">
My Badges
<a href="#" style="float: right">
<img src="{{ STATIC_URL}}/css/default/images/icon-help-sm.png" width="20"
align="center"
title="Click to get help about this window"
onclick="toggleHelp('widget', 'my-badges'); return false;"
/></a>
</div>
{# <h5>Individual Badges</h5> #}
<table>
<tr>
<th class="width-ten-percent"></th>
<th>Badge</th>
<th>
Achievement
</th>
</tr>
{% if user.badges_earned.count > 0 %}
{% for awarded in user.badges_earned.all %}
<tr>
<td><img src="{{STATIC_URL}}{{awarded.badge.image}}"/></td>
<td>{{ awarded.badge.name }}</td>
<td>{{ awarded.badge.description.0 }}</td>
</tr>
{% endfor %}
{% else %}
<tr>
<td colspan="3">You don't have any badges yet!</td>
</tr>
{% endif %}
</table>
<div >

<!--Bootstrap modal dialog-->
<a data-toggle="modal" href="#badge-catalog"> See Badge Catalog </a>
<div id="badge-catalog" class="modal hide">
<div class="modal-body">
{% include "badge-catalog.html" %}
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a>
</div>
</div>

<!--end modal-->
<!-- <a href="{% url profile_badges %}" class="margin-one-third">See Badge Catalog</a>-->
</div>
5 changes: 3 additions & 2 deletions makahiki/apps/widgets/my_commitments/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load class_tags %}
{% load avatar_tags %}

<div class="content-box">
<div class="content-box-title">
My Public Commitments
<a href="#" style="float: right">
Expand All @@ -10,6 +10,7 @@
onclick="toggleHelp('widget', 'my-public-commitments'); return false;" />
</a>
</div>
<div >
<div>
{% include "user_commitments.html" %}
</div>
</div>
2 changes: 1 addition & 1 deletion makahiki/apps/widgets/notifications/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% if view_objects.notifications %}
{% if view_objects.notifications.unread %}
<ul id="notification-list">
<ul class="notification-list">
{% for notification in view_objects.notifications.unread %}
{% include "widgets/notifications/templates/notifications/list-item.html" %}
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
<li id="notification-item-{{notification.id}}"
class="{{notification.style_class}} notification-item">
<!-- FIXME: don't like the width 700px CAM -->
<div class="notification-contents"
{% if notification.is_success %}style='width: 700px'{% endif %}>
<div class="notification-contents">
<div class='notice-icon'>
<span class="ui-icon {{notification.icon_class}}"></span>
</div>
<div class='notice-content' {% if notification.is_success %}style='width: 650px'{% endif %}>
<div class='notice-content'>
{{ notification.contents|safe }}
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions makahiki/apps/widgets/quests/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

{% load class_tags %}

<div id="quest-box" style="clear: both">
<div id="quest-header">
<h3 id="quest-title">Your Quests</h3>
<a href="#" style="float: right">
<div id="quest-box">
<div id="quest-header" class="makahiki-box-title">
<h3 id="quest-title" class="makahiki-box-title">Your Quests</h3>
<a href="#">
<img src="{{ STATIC_URL}}/css/default/images/icon-help-sm.png" width="20" align="center"
title="Click to get help about this window"
onclick="toggleHelp('widget', 'quests'); return false;"
Expand All @@ -20,7 +20,7 @@ <h3 id="quest-title">Your Quests</h3>
{% endif %}

<div id="quest-details" style="margin: 0px 10px; display: none">
<div id="quest-contents" style="clear:both"></div>
<div id="quest-contents" class="quest-description" style="clear:both"></div>
<a href="javascript:void(0)" id="quest-hide">Close</a>

<div style="clear:both"></div>
Expand Down
2 changes: 1 addition & 1 deletion makahiki/apps/widgets/quests/templates/quest_list.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load class_tags %}

<ul id="quest-list">
<ul class="quest-list">
{# set variable to indicate that these are user quests. #}
{% with "true" as user_quest %}
{% for quest in view_objects.quests.user_quests %}
Expand Down
22 changes: 13 additions & 9 deletions makahiki/apps/widgets/smartgrid/templates/task.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
{% endblock %}

{% block body %}
<div {% get_id_and_classes "activity-task-stats" %}>
<div {% get_id_and_classes "activity-task-stats-box" %}>
<div {% get_id_and_classes "activity-task-stats-title" %}>
<div class="container-fluid">
<div class="row-fluid">
<div class="span6">
<div class="content-box">
<div class="content-box-title">
{{ task.type|capfirst }} : {{ task.name }}
</div>
<div {% get_id_and_classes "activity-task-stats-content" %}>
<div class="content-box-contents">
{% if task.is_canopy %}
<p/> This is a Canopy {{ task.type|capfirst }}.
{% endif %}
Expand Down Expand Up @@ -112,7 +114,7 @@
</button>
</a>
{% else %}
<a href="/actions">
<a href="/learn/">
<button style="cursor:pointer;">
<img src="{{ STATIC_URL}}/css/default/images/left.png" width="50"
align="top">
Expand All @@ -125,9 +127,9 @@
</div>
</div>

<div {% get_id_and_classes "activity-task-details" %}>
<div {% get_id_and_classes "activity-task-details-box" %}>
<div {% get_id_and_classes "activity-task-details-title" %}>
<div class="span6">
<div class="content-box">
<div class="content-box-title">
<table>
<tr>
<td>About the {{ task.type }}</td>
Expand All @@ -142,7 +144,7 @@
</tr>
</table>
</div>
<div {% get_id_and_classes "activity-task-details-content" %}>
<div class="content-box-contents">
{% if pau %}
{% if approval.approval_status == "approved" or approval.award_date %}
<div {% get_id_and_classes "activity-task-details-info" %}>
Expand Down Expand Up @@ -356,6 +358,8 @@
</div>
</div>
</div>
</div>
</div>
{% endblock %}

{% block extra_body %}
Expand Down
1 change: 1 addition & 0 deletions makahiki/apps/widgets/smartgrid/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ def _calculate_task_duration(task):
def _create_activity_request_form(request, task, user, approval, pau):
""" Create activity request form """
form_title = "Get your points"
question = "?"

social_email = None
social_email2 = None
Expand Down
Loading

0 comments on commit d35bf0d

Please sign in to comment.