Changeset 847:f0a01e1e5fa8


Ignore:
Timestamp:
08/21/10 20:11:15 (3 years ago)
Author:
fl
Branch:
trunk
Message:

[svn r1193] remove some mentions of "status quo"

Location:
adhocracy
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • adhocracy/lib/event/formatting.py

    r813 r847  
    5050        if poll.action == poll.SELECT and poll.selection:  
    5151            text = poll.selection.page.variant_head(poll.variant) 
    52             title = _("Status quo") if text.variant == text.HEAD else text.variant 
    53             return self.SELECT_PATTERN(title, poll.selection.page.title) 
     52            return self.SELECT_PATTERN(text.variant_name, poll.selection.page.title) 
    5453        else: 
    5554            fmt = self._get_formatter(poll) 
     
    6059        if poll.action == poll.SELECT:  
    6160            text = poll.selection.page.variant_head(poll.variant) 
    62             title = _("Status quo") if text.variant == text.HEAD else text.variant 
    6361            variant_link = "<a href='%s'>%s</a>" % (h.text.url(text),  
    64                                                     cgi.escape(title)) 
     62                                                    cgi.escape(text.variant_name)) 
    6563            page_link = h.page.link(poll.selection.page, icon=True, icon_size=16) 
    6664            return self.SELECT_PATTERN(variant_link, page_link) 
  • adhocracy/lib/tiles/decision_tiles.py

    r798 r847  
    1919        if self.poll.action == self.poll.SELECT and self.poll.selection: 
    2020            text = self.poll.selection.page.variant_head(self.poll.variant) 
    21             title = _("Status quo") if text.variant == text.HEAD else text.variant 
    22             variant_link = "<a href='%s'><code>%s</code></a>" % (h.text.url(text), cgi.escape(title)) 
     21            variant_link = "<a href='%s'><code>%s</code></a>" % (h.text.url(text), cgi.escape(title.variant_name)) 
    2322            page_link = h.page.link(self.poll.scope) 
    2423            return _("variant %(variant)s of %(page)s") % dict(variant=variant_link, page=page_link) 
  • adhocracy/model/text.py

    r843 r847  
    22import logging 
    33 
     4from pylons.i18n import _ 
    45from sqlalchemy import Table, Column, Integer, Unicode, UnicodeText, ForeignKey, DateTime, func, or_ 
    56from sqlalchemy.orm import relation, backref 
     
    910 
    1011log = logging.getLogger(__name__) 
     12 
    1113 
    1214 
     
    7981            return [self] + self.parent.history 
    8082        return [self] 
    81      
    82      
    83     @property 
    84     def variant_title(self): 
    85         from pylons.i18n import _ 
    86         if self.variant == self.HEAD: 
    87             return _("[status quo]") 
    88         return self.variant 
    89      
     83         
    9084     
    9185    def delete(self, delete_time=None): 
     
    127121     
    128122     
     123    @property 
     124    def variant_name(self): 
     125        if self.is_head: 
     126            return _("Status Quo") 
     127        return self.variant 
     128     
     129     
    129130    @property  
    130131    def is_head(self): 
  • adhocracy/templates/page/show.html

    r834 r847  
    1919                        <li> 
    2020                                %if variant == c.model.Text.HEAD: 
    21                                         <b>${_("Status quo")}</b> 
     21                                        <b>${text.variant_name}</b> 
    2222                                %else: 
    2323                                        <a href="${h.entity_url(text)}"><code>${variant}</code></a> 
    2424                                %endif 
    25                                 (<a href="${h.entity_url(text, member='history')}">${_("history")}</a>) 
    26                                 </li> 
     25                        </li> 
    2726                %endfor 
    2827        </ul> 
  • adhocracy/templates/selection/tiles.html

    r846 r847  
    128128                                <div class="variant_innerheader">                                
    129129                                %if row.text.is_head: 
    130                                         <b><a href="${h.entity_url(row.text)}">${_("Status quo")}</a></b> 
     130                                        <b><a href="${h.entity_url(row.text)}">${row.text.variant_name}</a></b> 
    131131                                        ${_("(this proposal should not change this norm)")} 
    132132                                %else: 
  • adhocracy/templates/text/tiles.html

    r846 r847  
    100100                                                        <!-- nop --> 
    101101                                                %else: 
    102                                                         <option value="${text.id}">${text.variant_title}</option> 
     102                                                        <option value="${text.id}">${text.variant_name}</option> 
    103103                                                %endif 
    104104                                        %endfor 
     
    114114                                        </div> 
    115115                                %else: 
    116                                         <b><a href="${h.entity_url(this)|n}"> 
    117                                         %if this.variant == c.model.Text.HEAD: 
    118                                                 ${_("Status quo")} 
    119                                         %else: 
    120                                                 ${this.variant} 
    121                                         %endif 
    122                                         </a></b> 
     116                                        <b><a href="${h.entity_url(this)|n}">${this.variant_name}</a></b> 
    123117                                %endif 
    124118                        %endif 
Note: See TracChangeset for help on using the changeset viewer.