aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorjan <jan@ruken.pw>2015-12-30 15:49:59 (UTC)
committerjan <jan@ruken.pw>2015-12-30 15:49:59 (UTC)
commitee37b31502bc46527a5db51f73459f5f7946e1b2 (patch)
treee34ae3c9357ed536e1ab589483e999f8bf9d1df2 /views
parentb203f34144896436db3925c63b3c91bda59f7e77 (diff)
hover für search-results. beim klicken auf ein gril wird ein request gestartet, fehlt nur noch die implementation, um ein gril zu einer liste hinzuzufügen.
Diffstat (limited to 'views')
-rw-r--r--views/instant_search_results.html2
-rw-r--r--views/list.html1
2 files changed, 2 insertions, 1 deletions
diff --git a/views/instant_search_results.html b/views/instant_search_results.html
index 9c5a476..0472879 100644
--- a/views/instant_search_results.html
+++ b/views/instant_search_results.html
@@ -1,6 +1,6 @@
1{{ define "instant_search_results" }} 1{{ define "instant_search_results" }}
2{{ range .results }} 2{{ range .results }}
3<li class="collection-item avatar hoverable valign-wrapper"> 3<li class="collection-item search-result avatar hoverable valign-wrapper" onClick="clickSearchResult({{ .ID }})" >
4 <img src="/{{ .ImagePath }}" alt="" class="circle"> 4 <img src="/{{ .ImagePath }}" alt="" class="circle">
5 <span class="title">{{ .Name }}</span> 5 <span class="title">{{ .Name }}</span>
6</li> 6</li>
diff --git a/views/list.html b/views/list.html
index 7963004..daa56cd 100644
--- a/views/list.html
+++ b/views/list.html
@@ -9,6 +9,7 @@
9 <link rel="stylesheet" href="/assets/css/search.css" /> 9 <link rel="stylesheet" href="/assets/css/search.css" />
10 <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> 10 <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
11 <script src="/assets/js/search.js"></script> 11 <script src="/assets/js/search.js"></script>
12 <script src="/assets/js/list.js"></script>
12 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> 13 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
13 </head> 14 </head>
14 <body> 15 <body>