liquid_feedback_frontend

view app/main/_layout/report.html @ 34:a851cc1d9903

Beautified report view for closed issues
author bsw
date Wed Feb 24 12:37:28 2010 +0100 (2010-02-24)
parents a6caaff47205
children
line source
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
4 <title><!-- WEBMCP SLOTNODIV app_name --></title>
5 <link rel="stylesheet" type="text/css" media="screen" href="<!-- WEBMCP SLOTNODIV stylesheet_url -->" />
6 <script>
7 var lastEls = new Array();
8 function openEl(el) {
9 var el = document.getElementById(el);
10 if (! el) {
11 return;
12 }
13 if (lastEls.length > 0) {
14 lastEls[lastEls.length-1].style.display='none';
15 };
16 lastEls.push(el);
17 el.style.display = 'block';
18 }
19 function undo() {
20 if (lastEls.length > 1) {
21 var el = lastEls.pop();
22 el.style.display='none';
23 };
24 if (lastEls.length > 0) {
25 lastEls[lastEls.length-1].style.display = 'block';
26 };
27 }
28 var prev_issues = {};
29 var prev_initiatives = {};
30 var parents = {};
31 var next_initiatives = {};
32 var next_issues = {};
33 function openPrevIssue() {
34 openEl(prev_issues[lastEls[lastEls.length-1].id]);
35 };
36 function openPrevInitiative() {
37 openEl(prev_initiatives[lastEls[lastEls.length-1].id]);
38 };
39 function openParent() {
40 openEl(parents[lastEls[lastEls.length-1].id]);
41 };
42 function openNextInitiative() {
43 openEl(next_initiatives[lastEls[lastEls.length-1].id]);
44 };
45 function openNextIssue() {
46 openEl(next_issues[lastEls[lastEls.length-1].id]);
47 };
48 function openElDirect() {
49 var issue_id_el = document.getElementById("input_issue");
50 var initiative_id_el = document.getElementById("input_initiative");
51 if (initiative_id_el.value) {
52 openEl("initiative_" + initiative_id_el.value);
53 } else if (issue_id_el.value) {
54 openEl("issue_" + issue_id_el.value);
55 };
56 issue_id_el.value = "";
57 initiative_id_el.value = "";
58 }
59 </script>
60 <style>
61 .nav {
62 font-size: 75%;
63 }
64 .nav .left {
65 float: left;
66 }
68 .nav a {
69 text-decoration: none;
70 margin-left: 0.5em;
71 padding: 1ex;
72 background-color: #ddd;
73 }
74 .nav img {
75 vertical-align: middle;
76 }
77 </style>
78 </head>
79 <body>
80 <div class="main" id="default">
81 <!-- WEBMCP SLOT default -->
82 </div>
83 </body>
84 <script>
85 </script>
86 </html>

Impressum / About Us