Some first attempts at a ticket list color scheme and page layout

develop
Sven Slootweg 11 years ago
parent 3ac9274b1f
commit 1bdc620153

@ -13,6 +13,8 @@
if(!isset($_APP)) { die("Unauthorized."); }
$sPageTitle = "Overview";
$sCurrentPage = "overview";
$sPageContents = Templater::AdvancedParse("project/index", $locale->strings, array(
"long-description" => $sProject->sLongDescription,
"no-downloads" => false,

@ -0,0 +1,18 @@
<?php
/*
* projectname is more free software. It is licensed under the WTFPL, which
* allows you to do pretty much anything with it, without having to
* ask permission. Commercial use is allowed, and no attribution is
* required. We do politely request that you share your modifications
* to benefit other developers, but you are under no enforced
* obligation to do so :)
*
* Please read the accompanying LICENSE document for the full WTFPL
* licensing text.
*/
if(!isset($_APP)) { die("Unauthorized."); }
$sPageTitle = "Tickets";
$sCurrentPage = "tickets";
$sPageContents = NewTemplater::Render("project/tickets/index", $locale->strings, array());

@ -15,6 +15,7 @@ require("include/base.php");
$sPageTitle = "";
$sPageContents = "";
$sCurrentPage = "";
/* Define the different routes for the application */
@ -81,7 +82,8 @@ if(empty($router->uVariables['page_type']) || $router->uVariables['page_type'] =
elseif($router->uVariables['page_type'] == "project")
{
$sContents = NewTemplater::Render("project/layout", $locale->strings, array(
"contents" => $sPageContents
"contents" => $sPageContents,
"current-page" => $sCurrentPage
));
}
else

@ -12,6 +12,97 @@ body
font-family: "Nobile", sans-serif;
}
table
{
width: 100%;
border-spacing: 0px;
border-collapse: collapse;
}
table th, table td
{
text-align: left;
padding: 7px 7px;
border-left: 1px solid #252525;
border-right: 1px solid #252525;
}
table th
{
background-color: black;
color: white;
font-size: 12px;
}
table td
{
border: 1px solid #A1A1A1;
}
table th.empty table td.empty
{
padding: 0px;
}
table td
{
font-size: 13px;
}
section.tickets tr.priority-low
{
color: #2B2B2B;
background-color: #EDEDED;
}
section.tickets tr.priority-low:hover
{
background-color: #E3E3E3;
}
section.tickets tr.priority-normal
{
color: black;
background-color: #E5FFFF;
}
section.tickets tr.priority-normal:hover
{
background-color: #DCF5F5;
}
section.tickets tr.priority-high
{
background-color: #FFC9C9;
}
section.tickets tr.priority-high:hover
{
background-color: #F5C1C1;
}
section.tickets tr.priority-high td.priority
{
color: red;
font-weight: bold;
}
section.tickets tr.status-closed
{
color: gray;
background-color: #D0D0D0;
}
section.tickets tr.status-closed:hover
{
background-color: #C7C7C7;
}
section.tickets tr.status-closed.priority-high td.priority
{
color: #656565;
}
.clear
{
clear: both;

@ -4,13 +4,13 @@
<div class="clear"></div>
</div>
<ul class="menu">
<li class="active"><a href="{%?project-url}">Overview</a></li>
<li><a href="{%?project-url}/downloads">Downloads</a></li>
<li><a href="{%?project-url}/code">Code</a></li>
<li><a href="{%?project-url}/tickets">Tickets</a></li>
<li><a href="{%?project-url}/forum">Forum</a></li>
<li><a href="{%?project-url}/contributors">Contributors</a></li>
<li><a href="{%?project-url}/invitations">Invitations</a></li>
<li {%if current-page == "overview"}class="active"{%/if}><a href="{%?project-url}">Overview</a></li>
<li {%if current-page == "downloads"}class="active"{%/if}><a href="{%?project-url}/downloads">Downloads</a></li>
<li {%if current-page == "code"}class="active"{%/if}><a href="{%?project-url}/code">Code</a></li>
<li {%if current-page == "tickets"}class="active"{%/if}><a href="{%?project-url}/tickets">Tickets</a></li>
<li {%if current-page == "forum"}class="active"{%/if}><a href="{%?project-url}/forum">Forum</a></li>
<li {%if current-page == "contributors"}class="active"{%/if}><a href="{%?project-url}/contributors">Contributors</a></li>
<li {%if current-page == "invitations"}class="active"{%/if}><a href="{%?project-url}/invitations">Invitations</a></li>
<li class="clear"></li>
</ul>
<div class="main">

@ -0,0 +1,40 @@
<section class="tickets">
<table>
<tr>
<th class="empty"></th>
<th>Title</th>
<th>Priority</th>
<th>Status</th>
</tr>
<tr class="priority-high status-open">
<td class="empty"></td>
<td class="title">This is a sample ticket about some kind of bug.</td>
<td class="priority">High</td>
<td class="status">Open</td>
</tr>
<tr class="priority-normal status-open">
<td class="empty"></td>
<td class="title">Some kind of feature suggestion</td>
<td class="priority">Normal</td>
<td class="status">Open</td>
</tr>
<tr class="priority-low status-open">
<td class="empty"></td>
<td class="title">Aaaaaabsolutely unimportant.</td>
<td class="priority">Low</td>
<td class="status">Open</td>
</tr>
<tr class="priority-high status-closed">
<td class="empty"></td>
<td class="title">This is an urgent ticket about something that has been resolved..</td>
<td class="priority">High</td>
<td class="status">Closed</td>
</tr>
<tr class="priority-normal status-closed">
<td class="empty"></td>
<td class="title">This is a normal ticket about something that has been resolved..</td>
<td class="priority">Normal</td>
<td class="status">Closed</td>
</tr>
</table>
</section>
Loading…
Cancel
Save