Browse Source

Progress...

develop
Sven Slootweg 9 years ago
parent
commit
48b4b80447
  1. 1
      config.json
  2. 3
      public_html/classes/project.php
  3. 24
      public_html/index.php
  4. 70
      public_html/templates/layout.tpl

1
config.json

@ -1,6 +1,7 @@
{
"database": {
"driver": "mysql",
"pdo": true,
"hostname": "localhost",
"username": "root",
"password": "",

3
public_html/classes/project.php

@ -23,6 +23,9 @@ class Project extends CPHPDatabaseRecordClass
'string' => array(
'Name' => "Name",
'ShortDescription' => "ShortDescription",
'Slug' => "Slug"
),
'simplehtml' => array(
'LongDescription' => "LongDescription"
),
'numeric' => array(

24
public_html/index.php

@ -1,14 +1,14 @@
<?php
require("include/base.php");
/*
* Cryto Team 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.
*/
echo(Templater::AdvancedParse("layout", $locale->strings, array(
"project-name" => "Demo project",
"long-description" => "A large, multi-paragraph description of the project would go here.",
"no-downloads" => false,
"stable-version" => "1.5.3",
"experimental-version" => "1.6.1",
"line-count" => "62,671",
"ticket-count" => 12,
"tickets" => array(),
"more-tickets" => false
)));
require("rewrite.php");

70
public_html/templates/layout.tpl

@ -7,75 +7,7 @@
</head>
<body>
<div class="wrapper">
<div class="header">
<h1>Team</h1>
<h2>{%?project-name}</h2>
<div class="clear"></div>
</div>
<ul class="menu">
<li class="active"><a href="#">Overview</a></li>
<li><a href="#">Downloads</a></li>
<li><a href="#">Code</a></li>
<li><a href="#">Tickets</a></li>
<li><a href="#">Forum</a></li>
<li><a href="#">Contributors</a></li>
<li><a href="#">Invitations</a></li>
<li class="clear"></li>
</ul>
<div class="main">
<aside>
<section class="download">
<h3>Downloads</h3>
{%if isempty|stable-version == false}
<a href="download/stable" class="download">
<b class="stable"></b>
<strong>Latest stable</strong>
{%?stable-version}
</a>
{%/if}
{%if isempty|experimental-version == false}
<a href="download/experimental" class="download">
<b class="experimental"></b>
<strong>Latest testing</strong>
{%?experimental-version}
</a>
{%/if}
{%if no-downloads == true}
There are no downloads for this project yet.
{%/if}
</section>
<section class="statistics">
<h3>Statistics</h3>
<ul>
<li><strong>{%?line-count}</strong> lines of code</li>
<!-- <li><strong>0</strong> commits</li>
<li><strong>0</strong> contributors</li> -->
<li><strong>{%?ticket-count}</strong> open tickets</li>
</ul>
</section>
<section class="tickets">
<h3>Latest tickets</h3>
<ul>
{%if isempty|tickets == false}
{%foreach ticket in tickets}
<li><strong>{%?ticket[title]}</strong> {%?ticket[date]}</li>
{%/foreach}
{%if more-tickets == true}
<li class="more"><a href="tickets">more...</a></li>
{%/if}
{%else}
No tickets.
{%/if}
</ul>
</section>
</aside>
<section class="intro">
<h3>Introduction</h3>
{%?long-description}
</section>
<div class="clear"></div>
</div>
{%?contents}
<div class="footer">
Cryto Team is a free project management and hosting service for non-profit projects. <a href="/signup">Sign up today!</a>
</div>

Loading…
Cancel
Save