Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Some changes to layout and views

  • Loading branch information...
commit 49fbf0f67f3e9755025323ace1cc7ee8a5f21785 1 parent ea1e8ec
John Kraal authored
View
1  testing/testing/controllers/project.py
@@ -27,6 +27,7 @@ def index(self):
def overview(self):
c.num_projects, c.projects = model.list_projects()
+ c.recent_projects = []
return render('/pages/project/overview.html')
def edit(self, id=None):
View
7 testing/testing/templates/components/base/menu.html
@@ -1,10 +1,7 @@
<div class="nav-collapse">
<ul class="nav">
- <li class="dropdown">
- <a href="${url(controller='project')}" class="dropdown-toggle">Projects <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="${url(controller='project')}">Overview</a></li>
- </ul>
+ <li>
+ <a href="${url(controller='project')}">Projects</a>
</li>
</ul>
<ul class="nav pull-right">
View
17 testing/testing/templates/pages/project/overview.html
@@ -2,14 +2,26 @@
<%def name="title()">Project overview</%def>
<section>
+%if c.num_projects:
+ <div class="row">
+ %for project in c.projects:
+ <div class="span4">
+ <div class="well">
+ <h2><span class="project-id">${project.id}</span> ${project.name}</h2>
+ <p><a href="#">Go</a></p>
+ </div>
+ </div>
+ %endfor
+ </div>
+%endif
+ <div class="row">
%if c.num_projects > 0:
<div class="span12">
<ul>
%for project in c.projects:
- <li><a href="${url(controller='project', action='view', id=h.get_url_id(project.id))}">${project.name}</li>
+ <li><a href="${url(controller='project', action='view', id=h.get_url_id(project.id))}">${project.name}</a></li>
%endfor
</ul>
- <p><a href="#">Also, you could create a new project if you really wanted to</a></p>
</div>
%else:
<div class="alert alert-block">
@@ -18,4 +30,5 @@ <h4 class="alert-heading">Hello</h4>
<p>Hiya! Looks like you haven't created any projects yet. <a href="${url(controller='project', action='edit', id='new')}">Create one</a> to get started!</p>
</div>
%endif
+ </div>
</section>
View
14 testing/testing/templates/pages/project/view.html
@@ -3,6 +3,13 @@
<section>
<div class="row">
+ <div class="span4">
+ <div class="well">
+ <h2>So basically yeah</h2>
+ <p>While this here shows the actions you can do with a project. Like create a test plan, update the current test plan or execute the current version. If you're also a ~cool dude~ you might even be able to consolidate a test plan, so testers can start using it.</p>
+ <p>In other news, sublime text editor doesn't know how to highlight text in HTML tags. That pretty much sucks.</p>
+ </div>
+ </div>
<div class="span8">
<p>So, this section here needs the latest result and all that nonsense.</p>
<ul>
@@ -13,12 +20,5 @@
<li><span class="label label-info">info</span> Somebody has started a testrun.</li>
</ul>
</div>
- <div class="span4">
- <div class="well">
- <h2>So basically yeah</h2>
- <p>While this here shows the actions you can do with a project. Like create a test plan, update the current test plan or execute the current version. If you're also a ~cool dude~ you might even be able to consolidate a test plan, so testers can start using it.</p>
- <p>In other news, sublime text editor doesn't know how to highlight text in HTML tags. That pretty much sucks.</p>
- </div>
- </div>
</div>
</section>
Please sign in to comment.
Something went wrong with that request. Please try again.