Changeset - cc032da2887a
[Not reviewed]
0 3 0
Luke Hatcher - 12 years ago 2012-10-03 22:41:35
lukeman@gmail.com
include user rating in reviews
3 files changed with 9 insertions and 4 deletions:
0 comments (0 inline, 0 general)
symposion/reviews/views.py
Show inline comments
...
 
@@ -55,5 +55,7 @@ def proposals_generator(request, queryset, user_pk=None, check_speaker=True):
 
        try:
 
            obj.latest_vote = LatestVote.objects.get(**lookup_params).css_class()
 
            obj.user_vote = LatestVote.objects.get(**lookup_params).vote
 
            obj.user_vote_css = LatestVote.objects.get(**lookup_params).css_class()
 
        except LatestVote.DoesNotExist:
 
            obj.latest_vote = "no-vote"
 
            obj.user_vote = None
 
            obj.user_vote_css = "no-vote"
 
        
symposion/templates/reviews/_review_table.html
Show inline comments
...
 
@@ -12,2 +12,3 @@
 
        <th>{% trans "-1" %}</th>
 
        <th><a href="#" class="tip" title="{% trans "Your Rating" %}"><i class="icon-user"></i></a></th>
 
    </thead>
...
 
@@ -16,3 +17,3 @@
 
        {% for proposal in proposals %}
 
            <tr>
 
            <tr class="{{ proposal.user_vote_css }}">
 
                <td>{{ proposal.number }}</td>
...
 
@@ -31,2 +32,3 @@
 
                <td>{{ proposal.minus_one }}</td>
 
                <td>{{ proposal.user_vote|default:"" }}</td>
 
            </tr>
symposion/templates/reviews/base.html
Show inline comments
...
 
@@ -99,3 +99,4 @@
 
    <script type="text/javascript">
 
        $(function() {            
 
        $(function() {
 
            $(".tip").tooltip();
 
            $("table.table-reviews").dataTable({
0 comments (0 inline, 0 general)