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 +8 -8
- data/app/views/layouts/_spaces.html.haml +2 -2
- data/app/views/wiki/spaces/_page_list_item.html.haml +4 -3
- data/lib/tawork/version.rb +1 -1
- metadata +2 -3
- data/.rvmrc +0 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWNjYjBmNjRiNGUxMWIyNWUwNzIzZTc2MTBiYWQyNDc0Mzc2MThjNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Yjc4MGVjNmYwZGJiMjQ5ZGM3ZDc4MWFkZWQzZTliZWQwNzliZDQ2OA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzUyMDdiNGJkNzY1NWUwNDA1NWIyYzllZTc5YzM4NTQ2NzAyZjdhNzVhZGY4
|
10
|
+
MTZhNGVjODZlNjVlZTBmZmMxN2MzYTJlZTYxN2IxNmU4YTZjYWQ0MjYyMWNm
|
11
|
+
ODE1Zjk3ZDA1MTg0YWJlMzY1YTIxMGYwMmI2MTVhYjcwZjA0NWQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
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
|
data/lib/tawork/version.rb
CHANGED
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.
|
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-
|
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
|