tawork 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/bootstrap_and_overrides.sass +11 -1
- data/app/controllers/wiki/pages_controller.rb +2 -0
- data/app/views/layouts/_spaces.html.haml +16 -11
- data/app/views/layouts/application.html.haml +2 -2
- data/app/views/wiki/pages/_display.html.haml +5 -0
- data/app/views/wiki/pages/index.html.haml +16 -2
- data/config/routes.rb +1 -1
- data/lib/tawork/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef46e098ff848ab273f65f022f916741b01f2628
|
4
|
+
data.tar.gz: db2b0ea3d60e7a5c81cb080dfbe671a137d70cb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47ab750ae5e33f812714906bc39005bb8da5de5e9e64a0590db1fab72ae05e640bdcc1881bf9da57dac35ec997398922af4cf173302187d2b817df6668078fc3
|
7
|
+
data.tar.gz: dce6ac49ff487dc7471a23c63848e7498082620bbcd7c75e290d9c898246af9dec49de6b5f30c36cd4a3e0e54c4926a9cf6cd18573be63520126732c056e3c7c
|
@@ -203,11 +203,16 @@ li.mjs-nestedSortable-expanded
|
|
203
203
|
text-decoration: none
|
204
204
|
|
205
205
|
.wiki-title
|
206
|
-
font-size: 54px
|
207
206
|
border-bottom: 1px dashed lightgray
|
208
207
|
margin-bottom: 5px
|
208
|
+
padding-bottom: .25em
|
209
|
+
|
210
|
+
.wiki-content
|
211
|
+
min-height: 5em
|
209
212
|
|
210
213
|
.content-description
|
214
|
+
clear: both
|
215
|
+
|
211
216
|
table
|
212
217
|
@extend .table
|
213
218
|
|
@@ -219,3 +224,8 @@ li.mjs-nestedSortable-expanded
|
|
219
224
|
.user, .time
|
220
225
|
display: inline
|
221
226
|
|
227
|
+
.space-link
|
228
|
+
font-weight: bold
|
229
|
+
|
230
|
+
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6
|
231
|
+
font-family: "Bitter", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif
|
@@ -3,6 +3,7 @@ class Wiki::PagesController < ApplicationController
|
|
3
3
|
before_filter :load_page
|
4
4
|
|
5
5
|
def index
|
6
|
+
@roots = Page.roots
|
6
7
|
end
|
7
8
|
|
8
9
|
def create
|
@@ -21,6 +22,7 @@ class Wiki::PagesController < ApplicationController
|
|
21
22
|
end
|
22
23
|
|
23
24
|
def show
|
25
|
+
@space = @page.root
|
24
26
|
@subtree = @page.subtree.group_by(&:parent_id)
|
25
27
|
@last_updated = @page.activities.
|
26
28
|
where(key: 'page.update_details').
|
@@ -1,16 +1,21 @@
|
|
1
1
|
%ul.nav.nav-list.nav-list-panel.space-list
|
2
|
-
%li.nav-header
|
3
|
-
Spaces
|
4
|
-
- Space.all.each do |page|
|
5
|
-
= render 'wiki/spaces/page_list_item', page: page, end_page: @page
|
6
|
-
-# %li.page-list-item{data: {page_id: page.id}}
|
7
|
-
-# = link_to wiki_page_path(page) do
|
8
|
-
-# - if page.has_children?
|
9
|
-
-# %i.fa.fa-plus-square
|
10
|
-
-# = page.title
|
11
2
|
%li
|
12
|
-
= link_to
|
13
|
-
|
3
|
+
= link_to wiki_pages_path, class: "space-link" do
|
4
|
+
All Spaces
|
5
|
+
%i.fa.fa-arrow-circle-right
|
6
|
+
- if @space.present?
|
7
|
+
%li.nav-header
|
8
|
+
= @space.title
|
9
|
+
- @space.children.each do |page|
|
10
|
+
= render 'wiki/spaces/page_list_item', page: page, end_page: @page
|
11
|
+
-# %li.page-list-item{data: {page_id: page.id}}
|
12
|
+
-# = link_to wiki_page_path(page) do
|
13
|
+
-# - if page.has_children?
|
14
|
+
-# %i.fa.fa-plus-square
|
15
|
+
-# = page.title
|
16
|
+
%li
|
17
|
+
= link_to new_wiki_space_path do
|
18
|
+
%i.fa.fa-plus
|
14
19
|
|
15
20
|
:coffeescript
|
16
21
|
$ ->
|
@@ -7,8 +7,8 @@
|
|
7
7
|
= stylesheet_link_tag "application", media: "all"
|
8
8
|
= javascript_include_tag "application"
|
9
9
|
= csrf_meta_tags
|
10
|
-
%link{href:
|
11
|
-
%link{href: "
|
10
|
+
%link{href: '//fonts.googleapis.com/css?family=Bitter:400,700,400italic', rel: 'stylesheet', type:'text/css'}/
|
11
|
+
%link{href: "//fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic", rel: "stylesheet", type: "text/css"}/
|
12
12
|
|
13
13
|
|
14
14
|
%body
|
@@ -1,7 +1,9 @@
|
|
1
1
|
.page-article{class: "page_#{@page.id}"}
|
2
|
+
%h3.edit-helper.hide Title
|
2
3
|
%h1#wiki-title.wiki-title= @page.title
|
3
4
|
= render 'last_updated'
|
4
5
|
|
6
|
+
%h3.edit-helper.hide Body
|
5
7
|
#wiki-content.wiki-content.content-description
|
6
8
|
~raw @page.body
|
7
9
|
|
@@ -13,6 +15,7 @@
|
|
13
15
|
:coffeescript
|
14
16
|
$ ->
|
15
17
|
window.enable_edit = enable_edit = ->
|
18
|
+
$(".edit-helper").toggleClass("hide")
|
16
19
|
tinymce.init
|
17
20
|
selector: "h1.wiki-title"
|
18
21
|
inline: true
|
@@ -126,9 +129,11 @@
|
|
126
129
|
type: $(this).data("type")
|
127
130
|
url: $(this).data("url")
|
128
131
|
success: ->
|
132
|
+
$(".edit-helper").toggleClass("hide")
|
129
133
|
$(".save").hide()
|
130
134
|
$(".edit").show()
|
131
135
|
tinyMCE.remove('div');
|
136
|
+
|
132
137
|
data:
|
133
138
|
markdown_body: markdown_body
|
134
139
|
type: #{@page.type.parameterize.to_json}
|
@@ -1,2 +1,16 @@
|
|
1
|
-
%
|
2
|
-
|
1
|
+
%h3 Wiki Sitemap (Two levels)
|
2
|
+
|
3
|
+
%ul.nav.nav-list
|
4
|
+
- @roots.each do |node|
|
5
|
+
%li
|
6
|
+
= link_to node.title, wiki_page_path(node), class: "space-link"
|
7
|
+
|
8
|
+
%ul.nav-list-sub
|
9
|
+
- node.children.each do |child|
|
10
|
+
%li
|
11
|
+
= link_to wiki_page_path(child) do
|
12
|
+
= child.title
|
13
|
+
- if child.has_children?
|
14
|
+
%i.fa.fa-arrow-circle-right
|
15
|
+
|
16
|
+
|
data/config/routes.rb
CHANGED
@@ -2,7 +2,7 @@ Rails.application.class.routes.draw do
|
|
2
2
|
# Mercury::Engine.routes
|
3
3
|
devise_for :users, controllers: { omniauth_callbacks: "users/omniauth_callbacks" }
|
4
4
|
|
5
|
-
root '
|
5
|
+
root 'wiki/pages#index'
|
6
6
|
get 'sink/index' #=> "sink#index"
|
7
7
|
get 'sink/components' #=> "sink#components"
|
8
8
|
|
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.4
|
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-01-
|
11
|
+
date: 2014-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|