~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/answers/browser/question.py

  • Committer: Gary Poster
  • Date: 2011-07-27 15:25:32 UTC
  • mto: This revision was merged to the branch mainline in revision 13541.
  • Revision ID: gary.poster@canonical.com-20110727152532-50akr19c7mgcj5qu
add config option for timeout value

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
        if self.user is not None and self.context.isSubscribed(self.user):
128
128
            text = 'Unsubscribe'
129
129
            icon = 'remove'
130
 
            summary = ('You will stop receiving email notifications about '
131
 
                        'updates to this question')
132
130
        else:
133
131
            text = 'Subscribe'
134
 
            icon = 'add'
135
 
            summary = ('You will receive email notifications about updates '
136
 
                        'to this question')
137
 
        return Link('+subscribe', text, icon=icon, summary=summary)
138
 
 
139
 
    def addsubscriber(self):
140
 
        """Return the 'Subscribe someone else' Link."""
141
 
        text = 'Subscribe someone else'
142
 
        return Link(
143
 
            '+addsubscriber', text, icon='add', summary=(
144
 
                'Launchpad will email that person whenever this question '
145
 
                'changes'))
 
132
            icon = 'mail'
 
133
        return Link('+subscribe', text, icon=icon)
146
134
 
147
135
    def edit(self):
148
136
        """Return a Link to the edit view."""
156
144
    usedfor = IQuestion
157
145
    facet = 'answers'
158
146
    title = 'Edit question'
159
 
    links = ['edit', 'reject']
 
147
    links = ['edit', 'reject', 'subscription']
160
148
 
161
149
    def reject(self):
162
150
        """Return a Link to the reject view."""
171
159
    facet = 'answers'
172
160
    links = [
173
161
        'history', 'linkbug', 'unlinkbug', 'makebug', 'linkfaq',
174
 
        'createfaq', 'edit', 'changestatus', 'subscription', 'addsubscriber']
 
162
        'createfaq', 'edit', 'changestatus']
175
163
 
176
164
    def initialize(self):
177
165
        """Initialize the menu from the Question's state."""