tawork 0.0.35 → 0.0.36

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
- ODM5MWNjZjI0ZWEwNDg4MjM3MjM1Zjk4ZWE4ODkwMGNmMGQ5Y2FlNQ==
4
+ MWNjYjBmNjRiNGUxMWIyNWUwNzIzZTc2MTBiYWQyNDc0Mzc2MThjNg==
5
5
  data.tar.gz: !binary |-
6
- OGVhMjhjYzZiOTg1NzFiZDc0ZWM3MjE0NzljYTQ3NjQwYTljNjU4Zg==
6
+ Yjc4MGVjNmYwZGJiMjQ5ZGM3ZDc4MWFkZWQzZTliZWQwNzliZDQ2OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWQ3NGNkZTM0NGM0YzU4OWI4MDM3NmYyYzFiOTM5OGQyNzUwZjYyYzY4ZmU2
10
- ODhmMzVjNWFiZjVkYWU2NjIyMjAyMzkyNGYwNTU1YjRmMmE0NmU3YTVjNjgz
11
- ZTIyMzIwNTQ0N2MyNTkzMDNmYzcwYWZhZTlmMDY3ODI1NDBiMGY=
9
+ NzUyMDdiNGJkNzY1NWUwNDA1NWIyYzllZTc5YzM4NTQ2NzAyZjdhNzVhZGY4
10
+ MTZhNGVjODZlNjVlZTBmZmMxN2MzYTJlZTYxN2IxNmU4YTZjYWQ0MjYyMWNm
11
+ ODE1Zjk3ZDA1MTg0YWJlMzY1YTIxMGYwMmI2MTVhYjcwZjA0NWQ=
12
12
  data.tar.gz: !binary |-
13
- NjYzNTU0YzAxZTBhZjBlN2ZjZDU2ZWZjNmY3ZmJlNmQ5OWI4NjY5MGI2YzYw
14
- ZDlkOTgyOTFjOTJmN2VmMDU0MzY2ODRiZjIxNjUwNmYyOGVlNDQyMjAwM2Jh
15
- NTIxYjEwY2NiNjM0ZGYxYTU0MWIwYWQ0ZjRlMzcxZjJlNDg5NjI=
13
+ OWJjOTZkMjMzYzU1Y2E3MzU1Njg5ZjdjMTQ2YTYzMGI3OWViOGFkOGYzMzk3
14
+ OTczYjNlN2Q4OWJjZGNhMTg2MzJlYTY3NGE5N2ZhNzM1NmRkYzA1YTc3YTA4
15
+ OGRkNGRkM2NmMjkwMTMwZDQ5NzI2M2FhYjg2MGUwMDIyYjE1MzI=
@@ -8,7 +8,7 @@
8
8
  - if @space.present? && @space.persisted?
9
9
  %li.nav-header.with-link
10
10
  = link_to @space.title, wiki_page_path(@space)
11
- - @space.children.each do |page|
11
+ - @space.children.order(:position).each do |page|
12
12
  = render 'wiki/spaces/page_list_item', page: page, end_page: @page
13
13
  -# %li.page-list-item{data: {page_id: page.id}}
14
14
  -# = link_to wiki_page_path(page) do
@@ -16,7 +16,7 @@
16
16
  -# %i.fa.fa-plus-square
17
17
  -# = page.title
18
18
  - else
19
- - Page.roots.each do |page|
19
+ - Page.roots.order(:position).each do |page|
20
20
  = render 'wiki/spaces/page_list_item', page: page, end_page: @page
21
21
  -# %li
22
22
  -# = link_to new_wiki_space_path do
@@ -1,11 +1,12 @@
1
1
  - end_page ||= Struct.new(:id, :ancestor_ids).new("", [])
2
- %li.page-list-item{data: {page_id: page.id}, class: "#{'selected' if end_page.id == page.id}"}
2
+ - is_current_page = end_page.id == page.id
3
+ %li.page-list-item{data: {page_id: page.id}, class: "#{'selected' if is_current_page}"}
3
4
  = link_to wiki_page_path(page) do
4
5
  - if page.has_children?
5
- - if end_page.ancestor_ids.include?(page.id)
6
+ - if end_page.ancestor_ids.include?(page.id) || is_current_page
6
7
  %i.fa.fa-minus-square
7
8
  - else
8
9
  %i.fa.fa-plus-square
9
10
  = page.title
10
- - if end_page.ancestor_ids.include?(page.id)
11
+ - if page.has_children? && (end_page.ancestor_ids.include?(page.id) || is_current_page)
11
12
  = render 'wiki/spaces/space_list', page: page, end_page: end_page
@@ -1,3 +1,3 @@
1
1
  module Tawork
2
- VERSION = '0.0.35'
2
+ VERSION = '0.0.36'
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.35
4
+ version: 0.0.36
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-24 00:00:00.000000000 Z
11
+ date: 2014-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -33,7 +33,6 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - .DS_Store
35
35
  - .gitignore
36
- - .rvmrc
37
36
  - Gemfile
38
37
  - Gemfile.lock
39
38
  - MIT-LICENSE
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm 1.9.3@tawork