tawork 0.0.30 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmQ3N2QyZWZjZmU4N2YxNzBkMDZhMTE1MDU5ZTM1NmRlYTVhN2IyYg==
4
+ NDYzZmQzOWVhYjQwMjU5ZTE4ZDZjNTFjNjc3MmUyMGRkZmI0OGY2Mg==
5
5
  data.tar.gz: !binary |-
6
- M2M1OGNmZjA1Y2JmMjYwNDNiM2QzY2ExOTM5YmNjOWYzMzEzZDA4MQ==
6
+ MDQ4Yjg2NjFkYmNhODRiNDJhM2M4Mjc1MjFiMjFiZGM1ZTc0OTJjNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGQ5OTc1NWI3ZmNhOTg1OGJkYzUzZjU5NDY5NTY1OGY1NDVmNDA2ODZlM2Y4
10
- ZjJlOGQxNjkzMzNmYWVlZTdhYTg1NWI0MTJkOWI3ZjJmZjYzZGE1YjhmOWVh
11
- YmExOWIxZmM2YTUyNGM2MDdjYmFjNGRhMGI3YTRiZDAyMTcxODE=
9
+ MThiYTMzMmE3YjAxYWEyMWJiNmIzYTFjM2Q3YjY0ZDg3MWJhNzQ5NzhiM2Jm
10
+ ZmNlMTc0YmE0ZTUxODlmNzdiMzEyODJiNzI3OTdkNGUwZTJjYTBjNTAwZTFi
11
+ MzRlMzE5NmRlYmVkNGFiYzk4Y2IwOWFkZmViMmI1NzI2MDk0OTk=
12
12
  data.tar.gz: !binary |-
13
- Mjg4ZDA0YzBlYmY2MDU1YzMxZWFjYTE3MzRmNGQyNzk0ZDllMDhkYmZkYTE4
14
- YjFjMzJhMWRmZDhiOTRkODc3ZmU3ZGFlYWQxMGNkZmNjYzQ4NzcwMGM2YWI4
15
- Y2IzNWQ5NWU1NDllMzViYmYwNTE2NTdiNjI3MDhiYzEwNmRjMzI=
13
+ MDVkZjMzNTcxN2I4MmZlYjBhNDNlZjYyNjIyMDAzOGZkYWJiNmNhZTQ2OTIw
14
+ OTQzOTMwOTM0ODE4ZWYyM2I5NTY4YWNjZGQyZDBiMTQyNjcxYWUxOWZmNzcx
15
+ NjM0ZTdhNzcxZmYzNmNkNTFmNDcyZTRlZjg1MWI3OWE5ZTZiZDM=
@@ -6,8 +6,8 @@ class window.GlobalSearch extends Backbone.View
6
6
  initialize: (options = {}) ->
7
7
  @$field = $("#global-search")
8
8
  @$results = $("#global-search-results")
9
- @$results.css
10
- right: @$field.offset().left - @$field.outerWidth() - @$results.outerWidth()
9
+ # @$results.css
10
+ # right: @$field.offset().left - @$field.outerWidth() - @$results.outerWidth()
11
11
 
12
12
  submit: (event) ->
13
13
  false
@@ -284,8 +284,14 @@ div.tokenfield.form-control
284
284
  color: #999999
285
285
  border: 1px solid black
286
286
  overflow-y: auto
287
+
287
288
  .result
288
- padding: 5px
289
+ color: #999999
290
+ padding: 10px 5px
291
+ border-bottom: 1px solid lighten(#999999, 10)
292
+
293
+ .search-trail
294
+ font-size: .9em
289
295
 
290
296
  &:hover
291
297
  background-color: lighten(#999999, 10)
@@ -304,3 +310,4 @@ div.tokenfield.form-control
304
310
  .delete-link
305
311
  font-size: .75em
306
312
  color: lighten(red, 15)
313
+
@@ -2,7 +2,6 @@ class SearchController < ApplicationController
2
2
  def index
3
3
  q = params[:term]
4
4
  @searcher = Searcher.search query: q
5
-
6
5
  render layout: false
7
6
  end
8
7
 
@@ -1,5 +1,11 @@
1
1
  = link_to wiki_page_path(result.attachable) do
2
2
  %i.fa.fa-paperclip
3
3
  = result.filename
4
- attached to
5
- = result.attachable.title
4
+ .search-trail
5
+ - if !result.attachable.is_a?(Space)
6
+ || &nbsp;
7
+ %i.fa.fa-file
8
+ = result.attachable.title
9
+ || &nbsp;
10
+ %i.fa.fa-bullseye
11
+ = result.attachable.root.title
@@ -2,3 +2,11 @@
2
2
  = link_to wiki_page_path(result) do
3
3
  %i.fa.fa-file
4
4
  = result.title
5
+ .search-trail
6
+ - if result.parent.present? && !result.parent.is_a?(Space)
7
+ || &nbsp;
8
+ %i.fa.fa-file
9
+ = result.parent.title
10
+ || &nbsp;
11
+ %i.fa.fa-bullseye
12
+ = result.root.title
@@ -1,3 +1,3 @@
1
1
  module Tawork
2
- VERSION = '0.0.30'
2
+ VERSION = '0.0.31'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tawork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.30
4
+ version: 0.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adnan Ali
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-19 00:00:00.000000000 Z
11
+ date: 2014-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails