Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Commit

Permalink
layout of search, propose to create course if zero results
Browse files Browse the repository at this point in the history
  • Loading branch information
1u committed Jul 11, 2013
1 parent a19d7f4 commit 3b73b44
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
14 changes: 14 additions & 0 deletions client/css/screen.css
Expand Up @@ -616,4 +616,18 @@ th{
.dropdown:hover .dropdown-menu {
display: block; }

.searchform{
font-size: 200%;
}

.search{
margin-top: 15px;
text-align: bottom;
}
.search_result{
font-size: 130%;
}
.propose_course{
font-size: 130%;

}
4 changes: 2 additions & 2 deletions client/views/main.html
Expand Up @@ -113,8 +113,8 @@
<template name="ticker">
<marquee bgcolor = "000000" direction="left" scrollamount="5" scrolldelay="1" style="color: white;">
Achtung: Dies ist nur eine <b>Testseite</b>. <span style = "padding-left:10em"> </span>
Eingegebene Daten werden regelmässig gelöscht. <span style = "padding-left:30em"> </span>
alle Daten werden regelmässig gelöscht. <span style = "padding-left:30em"> </span>
This is only a <b>Testpage</b>. <span style = "padding-left:10em"> </span>
Entered Data will be erased regularly. <span style = "padding-left:10em"> </span>
All data will be erased regularly. <span style = "padding-left:10em"> </span>
</marquee>
</template>
5 changes: 3 additions & 2 deletions client/views/search/form.html
@@ -1,5 +1,6 @@
<template name="search_form">
<div class="search">
<span class="search">
<h1>What do you want to learn?</h1>
<input name="search">
<input name="search" class="searchform" placeholder="everything">
</span>
</template>
4 changes: 4 additions & 0 deletions client/views/search/results.html
@@ -1,5 +1,9 @@

<template name="search_results">
{{#unless results.count}}<a class="propose_course" href="CourseCreate">Propose it</a>{{/unless}}
<div>
{{results.count}} gefunden!
</div>
<div class="courselist_results">
{{#each results.courses}}
{{> course}}
Expand Down
2 changes: 1 addition & 1 deletion client/views/start.html
@@ -1,5 +1,5 @@
<template name="start">
<div class="list_small">
<div class="search">
{{> search_form }}
{{> search_results }}
{{> course_create}}
Expand Down

0 comments on commit 3b73b44

Please sign in to comment.