def answers(self): text = 'Ask a question' url = canonical_url(self.context.distribution) + '/+addquestion' return Link(url, text, icon='add')
def people(self): return Link('/people/', 'View people', icon='info')
def project_groups(self): return Link('/projectgroups', 'View project groups', icon='info')
def cve(self): text = 'CVE reports' return Link('+cve', text, icon='cve')
def projects(self): return Link('/projects/', 'View projects', icon='info')
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)
def ask_question(self): return Link('+addquestion', 'Ask a question', site='answers', icon='answers', enabled=service_uses_launchpad(self.pillar.answers_usage))
def cve(self): return Link('+cve', 'CVE reports', icon='cve')
def nominations(self): return Link('+nominations', 'Review nominations', icon='bug')
def queue(self): text = 'Show uploads' return Link('+queue', text, icon='info')
def initseries(self): enabled = (not self.context.isInitializing() and not self.context.isInitialized()) text = 'Initialize series' return Link('+initseries', text, icon='edit', enabled=enabled)
def builds(self): text = 'Show builds' return Link('+builds', text, icon='info')
def admin(self): text = 'Administer' return Link('+admin', text, icon='edit')
def add_port(self): text = 'Add architecture' return Link('+addport', text, icon='add')
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)
def subscribedbugs(self): text = 'Subscribed bugs' summary = ('Bug reports %s is subscribed to.' % self.context.displayname) return Link('+subscribedbugs', text, site='bugs', summary=summary)
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)
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)
def report_bug(self): return Link('+filebug', 'Report a bug', site='bugs', icon='bugs', enabled=self.pillar.official_malone)
def assignedbugs(self): text = 'Assigned bugs' summary = 'Bugs assigned to %s.' % self.context.displayname return Link('+assignedbugs', text, site='bugs', summary=summary)
def bugsupervisor(self): text = 'Change bug supervisor' return Link('+bugsupervisor', text, icon='edit')
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)
def filebug(self): text = 'Report a bug' return Link('+filebug', text, icon='bug')
def overview(self): text = 'Overview' return Link('', text, site='mainsite')
def distributions(self): return Link('/distros/', 'View distributions', icon='info')
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)
def meetings(self): return Link('/sprints/', 'View meetings', icon='info')
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)
def register_project(self): text = 'Register a project' return Link('/projects/+new', text, icon='add')
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')