blob: f85bcd6e9b9a5d80689faec59ddd068a314c3e2e [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001# Copyright 2016 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style
3# license that can be found in the LICENSE file or at
4# https://developers.google.com/open-source/licenses/bsd
5
6"""A class to render a page of issue tracker search tips."""
7from __future__ import print_function
8from __future__ import division
9from __future__ import absolute_import
10
11import logging
12
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020013from framework import flaskservlet
Copybara854996b2021-09-07 19:36:02 +000014from framework import servlet
15from framework import permissions
16
17
18class IssueSearchTips(servlet.Servlet):
19 """IssueSearchTips on-line help on how to use issue search."""
20
21 _PAGE_TEMPLATE = 'tracker/issue-search-tips.ezt'
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020022 _MAIN_TAB_MODE = flaskservlet.FlaskServlet.MAIN_TAB_ISSUES
Copybara854996b2021-09-07 19:36:02 +000023
24 def GatherPageData(self, mr):
25 """Build up a dictionary of data values to use when rendering the page."""
26
27 return {
28 'issue_tab_mode': 'issueSearchTips',
29 'page_perms': self.MakePagePerms(mr, None, permissions.CREATE_ISSUE),
30 }
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020031
32 # def GetIssueSearchTips(self, **kwargs):
33 # return self.handler(**kwargs)