blob: 2b337e8b8c804e5b98cb2dfd0f12a4fe09583153 [file] [log] [blame]
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +01001# Copyright 2016 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
Copybara854996b2021-09-07 19:36:02 +00004
5"""A class to render a page of issue tracker search tips."""
6from __future__ import print_function
7from __future__ import division
8from __future__ import absolute_import
9
Copybara854996b2021-09-07 19:36:02 +000010from framework import permissions
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +010011from framework import servlet
Copybara854996b2021-09-07 19:36:02 +000012
13
14class IssueSearchTips(servlet.Servlet):
15 """IssueSearchTips on-line help on how to use issue search."""
16
17 _PAGE_TEMPLATE = 'tracker/issue-search-tips.ezt'
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +010018 _MAIN_TAB_MODE = servlet.Servlet.MAIN_TAB_ISSUES
Copybara854996b2021-09-07 19:36:02 +000019
20 def GatherPageData(self, mr):
21 """Build up a dictionary of data values to use when rendering the page."""
22
23 return {
24 'issue_tab_mode': 'issueSearchTips',
25 'page_perms': self.MakePagePerms(mr, None, permissions.CREATE_ISSUE),
26 }
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020027
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +010028 def GetIssueSearchTips(self, **kwargs):
29 return self.handler(**kwargs)