Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
667a7abd
Commit
667a7abd
authored
Jul 27, 2004
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 251837: Add UI to add/remove 'My Bugs' link in footer
r=joel a=justdave
parent
9a63d005
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
10 deletions
+35
-10
saved-searches.html.tmpl
template/en/default/account/prefs/saved-searches.html.tmpl
+29
-10
userprefs.cgi
userprefs.cgi
+6
-0
No files found.
template/en/default/account/prefs/saved-searches.html.tmpl
View file @
667a7abd
...
...
@@ -25,10 +25,6 @@
<table border="1" cellpadding="3">
<tr>
<th>
Show in <br>
Footer
</th>
<th>
Search
</th>
<th>
...
...
@@ -40,15 +36,32 @@
<th>
Forget
</th>
<th>
Show in
Footer
</th>
</tr>
<tr>
<td>My Bugs</td>
<td>
[% filtered_username = user.login FILTER url_quote %]
<a href="[% Param('mybugstemplate').replace('%userid%', filtered_username) %]">Run</a>
</td>
<td>
</td>
<td>
</td>
<td align="center">
<input type="checkbox"
name="showmybugslink"
value="1"
[% " checked" IF user.showmybugslink %]>
</td>
</tr>
[% FOREACH q = queries %]
<tr>
<td>
<input type="checkbox"
name="linkinfooter_[% q.name FILTER html %]"
value="1"
[% " checked" IF q.linkinfooter %]>
</td>
<td>[% q.name FILTER html %]</td>
<td>
<a href="buglist.cgi?[% q.query FILTER html %]">Run</a>
...
...
@@ -60,6 +73,12 @@
<a href="buglist.cgi?cmdtype=dorem&remaction=forget&namedcmd=
[% q.name FILTER html %]">Forget</a>
</td>
<td align="center">
<input type="checkbox"
name="linkinfooter_[% q.name FILTER html %]"
value="1"
[% " checked" IF q.linkinfooter %]>
</td>
</tr>
[% END %]
</table>
...
...
userprefs.cgi
View file @
667a7abd
...
...
@@ -298,6 +298,7 @@ sub DoPermissions {
sub
DoSavedSearches
()
{
$vars
->
{
'user'
}
=
Bugzilla
->
user
;
$vars
->
{
'queries'
}
=
Bugzilla
->
user
->
queries
;
}
...
...
@@ -315,6 +316,11 @@ sub SaveSavedSearches() {
}
Bugzilla
->
user
->
flush_queries_cache
;
my
$showmybugslink
=
defined
(
$cgi
->
param
(
"showmybugslink"
))
?
1
:
0
;
$dbh
->
do
(
"UPDATE profiles SET mybugslink = $showmybugslink "
.
"WHERE userid = "
.
Bugzilla
->
user
->
id
);
Bugzilla
->
user
->
{
'showmybugslink'
}
=
$showmybugslink
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment