コード例 #1
0
 def answers(self):
     text = 'Ask a question'
     url = canonical_url(self.context.distribution) + '/+addquestion'
     return Link(url, text, icon='add')
コード例 #2
0
 def people(self):
     return Link('/people/', 'View people', icon='info')
コード例 #3
0
 def project_groups(self):
     return Link('/projectgroups', 'View project groups', icon='info')
コード例 #4
0
ファイル: pillar.py プロジェクト: pombreda/UnnaturalCodeFork
 def cve(self):
     text = 'CVE reports'
     return Link('+cve', text, icon='cve')
コード例 #5
0
 def projects(self):
     return Link('/projects/', 'View projects', icon='info')
コード例 #6
0
 def answers(self):
     text = 'Answers'
     target = '+questions' if self.mainsite_only else ''
     site = 'mainsite' if self.mainsite_only else 'answers'
     return Link(target, text, site=site)
コード例 #7
0
ファイル: pillar.py プロジェクト: pombreda/UnnaturalCodeFork
 def ask_question(self):
     return Link('+addquestion',
                 'Ask a question',
                 site='answers',
                 icon='answers',
                 enabled=service_uses_launchpad(self.pillar.answers_usage))
コード例 #8
0
 def cve(self):
     return Link('+cve', 'CVE reports', icon='cve')
コード例 #9
0
 def nominations(self):
     return Link('+nominations', 'Review nominations', icon='bug')
コード例 #10
0
 def queue(self):
     text = 'Show uploads'
     return Link('+queue', text, icon='info')
コード例 #11
0
 def initseries(self):
     enabled = (not self.context.isInitializing()
                and not self.context.isInitialized())
     text = 'Initialize series'
     return Link('+initseries', text, icon='edit', enabled=enabled)
コード例 #12
0
 def builds(self):
     text = 'Show builds'
     return Link('+builds', text, icon='info')
コード例 #13
0
 def admin(self):
     text = 'Administer'
     return Link('+admin', text, icon='edit')
コード例 #14
0
 def add_port(self):
     text = 'Add architecture'
     return Link('+addport', text, icon='add')
コード例 #15
0
 def specifications(self):
     text = 'Blueprints'
     target = '+specs' if self.mainsite_only else ''
     site = 'mainsite' if self.mainsite_only else 'blueprints'
     return Link(target, text, site=site)
コード例 #16
0
ファイル: person.py プロジェクト: pombredanne/launchpad-3
 def subscribedbugs(self):
     text = 'Subscribed bugs'
     summary = ('Bug reports %s is subscribed to.' %
                self.context.displayname)
     return Link('+subscribedbugs', text, site='bugs', summary=summary)
コード例 #17
0
 def translations(self):
     text = 'Translations'
     target = '+translations' if self.mainsite_only else ''
     site = 'mainsite' if self.mainsite_only else 'translations'
     return Link(target, text, site=site)
コード例 #18
0
ファイル: person.py プロジェクト: pombredanne/launchpad-3
 def relatedbugs(self):
     text = 'All related bugs'
     summary = ('All bug reports which %s reported, is assigned to, '
                'or is subscribed to.' % self.context.displayname)
     return Link('', text, site='bugs', summary=summary)
コード例 #19
0
ファイル: pillar.py プロジェクト: pombreda/UnnaturalCodeFork
 def report_bug(self):
     return Link('+filebug',
                 'Report a bug',
                 site='bugs',
                 icon='bugs',
                 enabled=self.pillar.official_malone)
コード例 #20
0
ファイル: person.py プロジェクト: pombredanne/launchpad-3
 def assignedbugs(self):
     text = 'Assigned bugs'
     summary = 'Bugs assigned to %s.' % self.context.displayname
     return Link('+assignedbugs', text, site='bugs', summary=summary)
コード例 #21
0
ファイル: pillar.py プロジェクト: pombreda/UnnaturalCodeFork
 def bugsupervisor(self):
     text = 'Change bug supervisor'
     return Link('+bugsupervisor', text, icon='edit')
コード例 #22
0
ファイル: person.py プロジェクト: pombredanne/launchpad-3
 def softwarebugs(self):
     text = 'Subscribed packages'
     summary = ('A summary report for packages where %s is a subscriber.' %
                self.context.displayname)
     return Link('+packagebugs', text, site='bugs', summary=summary)
コード例 #23
0
ファイル: pillar.py プロジェクト: pombreda/UnnaturalCodeFork
 def filebug(self):
     text = 'Report a bug'
     return Link('+filebug', text, icon='bug')
コード例 #24
0
 def overview(self):
     text = 'Overview'
     return Link('', text, site='mainsite')
コード例 #25
0
 def distributions(self):
     return Link('/distros/', 'View distributions', icon='info')
コード例 #26
0
 def branches(self):
     text = 'Code'
     target = '+branches' if self.mainsite_only else ''
     site = 'mainsite' if self.mainsite_only else 'code'
     return Link(target, text, site=site)
コード例 #27
0
 def meetings(self):
     return Link('/sprints/', 'View meetings', icon='info')
コード例 #28
0
 def bugs(self):
     text = 'Bugs'
     target = '+bugs' if self.mainsite_only else ''
     site = 'mainsite' if self.mainsite_only else 'bugs'
     return Link(target, text, site=site)
コード例 #29
0
 def register_project(self):
     text = 'Register a project'
     return Link('/projects/+new', text, icon='add')
コード例 #30
0
 def needs_packaging(self):
     text = 'Needs upstream links'
     summary = 'A listing of source packages without upstream projects'
     return Link('+needs-packaging', text, summary=summary, icon='info')