From 7f8bf077b7a297957678912e5772098143f8ac74 Mon Sep 17 00:00:00 2001 From: x2001corpet Date: Sat, 29 Jul 2006 16:29:09 +0000 Subject: [PATCH] #371, notifier un bug de plat/al directement depuis le site git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@694 839d8a87-29fc-0310-9880-83ba4fa771e5 --- ChangeLog | 2 ++ htdocs/css/flyspray.css | 25 +++++++++++++++ htdocs/javascript/flyspray.js | 66 ++++++++++++++++++++++++++++++++++++++++ templates/skin/common.footer.tpl | 36 ++++++++++++++++++++++ templates/skin/common.header.tpl | 4 +++ templates/skin/common.menu.tpl | 2 ++ 6 files changed, 135 insertions(+) create mode 100644 htdocs/css/flyspray.css create mode 100644 htdocs/javascript/flyspray.js diff --git a/ChangeLog b/ChangeLog index 442f0f3..4a263a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -83,6 +83,8 @@ Bug/Wish: * Carnet: - #435: Calendar contains yearly events for all the contacts. -FRU + * Core: + - #371: Users can send bugs directly to plat/al tracker. -Car * Emails: - #426: Add an identification header in mails. -FRU diff --git a/htdocs/css/flyspray.css b/htdocs/css/flyspray.css new file mode 100644 index 0000000..395a6db --- /dev/null +++ b/htdocs/css/flyspray.css @@ -0,0 +1,25 @@ +#flyspray_report { + display:none; + position:fixed; + width:60%; + height:470px; + top:20%; + left:20%; + border: solid 1px; + background:white; + color:black; + text-align:left; +} +#flyspray_report div { + margin-left:10%; + margin-right:10%; +} +#flyspray_report textarea { + width:100%; + margin-bottom:10px; + height:300px; + display:block; +} +#flyspray_submit { + text-align:center; +} \ No newline at end of file diff --git a/htdocs/javascript/flyspray.js b/htdocs/javascript/flyspray.js new file mode 100644 index 0000000..337e0aa --- /dev/null +++ b/htdocs/javascript/flyspray.js @@ -0,0 +1,66 @@ +/*************************************************************************** + * Copyright (C) 2003-2006 Polytechnique.org * + * http://opensource.polytechnique.org/ * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the Free Software * + * Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * + ***************************************************************************/ + +function send_bug() { + document.getElementById('flyspray_report').style.display = 'block'; + return false; +} + +function close_bug(f,send) { + var detail = document.getElementById('flyspray_detail'); + detail.value = utf8(detail.value); + var title = document.getElementById('flyspray_title'); + title.value = utf8(title.value); + if (send) { + f.target = '_blank'; + f.submit(); + } + f.reset(); + document.getElementById('flyspray_report').style.display = 'none'; +} + +function utf8(isotext) +{ + var utf8text = ""; + for ( i=0; i +
+

Signaler un bug ou demander une amélioration

+
+ + + + + + + + + + + + + + + +
+ + +
+
+
+
Plat/al {#globals.version#} - Copyright © 1999-2006 Polytechnique.org diff --git a/templates/skin/common.header.tpl b/templates/skin/common.header.tpl index 26a9db8..162357e 100644 --- a/templates/skin/common.header.tpl +++ b/templates/skin/common.header.tpl @@ -36,6 +36,7 @@ + {foreach from=$xorg_css item=css} {/foreach} @@ -46,6 +47,9 @@ + {if $smarty.session.auth} + + {/if} {if $xorg_rss} diff --git a/templates/skin/common.menu.tpl b/templates/skin/common.menu.tpl index 7b78f2f..789cd94 100644 --- a/templates/skin/common.menu.tpl +++ b/templates/skin/common.menu.tpl @@ -73,6 +73,7 @@ + {if $smarty.session.perms eq admin} @@ -89,6 +90,7 @@ {/if} + {/if} {* vim:set et sw=2 sts=2 sws=2: *} -- 2.1.4