Books section added

This commit is contained in:
Joshua Milton 2012-07-04 17:55:30 +08:00
parent 32d1f8840c
commit 3f42a22094
9 changed files with 2206 additions and 1936 deletions

110
Gemfile
View File

@ -1,55 +1,55 @@
source 'http://rubygems.org' source 'http://rubygems.org'
gem 'rails', '>=3.1.0', '<3.2.0' gem 'rails', '>=3.1.0', '<3.2.0'
gem "brakeman" gem "brakeman"
gem 'bson_ext' gem 'bson_ext'
gem 'carrierwave' gem 'carrierwave'
gem 'carrierwave-mongoid', :require => 'carrierwave/mongoid' gem 'carrierwave-mongoid', :require => 'carrierwave/mongoid'
gem 'devise', '1.5.3' gem 'devise', '1.5.3'
gem 'exception_notification' # Send error trace gem 'exception_notification' # Send error trace
gem 'execjs' gem 'execjs'
gem 'jquery-rails' gem 'jquery-rails'
gem 'kaminari', :git => 'git://github.com/amatsuda/kaminari.git' gem 'kaminari'
gem 'mini_magick' gem 'mini_magick'
gem 'mongoid' gem 'mongoid'
gem "mongo_session_store-rails3" gem "mongo_session_store-rails3"
gem 'nokogiri' gem 'nokogiri'
gem 'radius' gem 'radius'
gem 'rake' gem 'rake'
gem 'ruby-debug19' gem 'ruby-debug19'
gem 'rubyzip' gem 'rubyzip'
gem 'sinatra' gem 'sinatra'
#gem 'sinatra-contrib' #gem 'sinatra-contrib'
gem 'sprockets' gem 'sprockets'
gem 'tinymce-rails' gem 'tinymce-rails'
gem 'therubyracer' if RUBY_PLATFORM.downcase.include?("linux") gem 'therubyracer' if RUBY_PLATFORM.downcase.include?("linux")
gem 'mongoid-encryptor', :require => 'mongoid/encryptor' gem 'mongoid-encryptor', :require => 'mongoid/encryptor'
#gem 'contacts' #gem 'contacts'
# Gems used only for assets and not required # Gems used only for assets and not required
# in production environments by default. # in production environments by default.
group :assets do group :assets do
gem 'sass-rails' gem 'sass-rails'
gem 'coffee-rails' gem 'coffee-rails'
gem 'uglifier' gem 'uglifier'
end end
group :test, :development do group :test, :development do
gem 'spork' #gem 'spork'
gem 'database_cleaner' #Strategies for cleaning databases. Can be used to ensure a clean state for testing. gem 'database_cleaner' #Strategies for cleaning databases. Can be used to ensure a clean state for testing.
gem "rspec", "~> 2.0" gem "rspec", "~> 2.0"
gem "rspec-rails", "~> 2.0" gem "rspec-rails", "~> 2.0"
gem "factory_girl_rails" gem "factory_girl_rails"
gem "shoulda-matchers" gem "shoulda-matchers"
gem "simplecov" gem "simplecov"
gem "delorean" gem "delorean"
gem "watchr" gem "watchr"
gem "spork" #gem "spork"
# gem "capybara" # gem "capybara"
# gem 'yard' # gem 'yard'
# gem "bluecloth" # gem "bluecloth"
end end

View File

@ -1,280 +1,267 @@
GIT GEM
remote: git://github.com/amatsuda/kaminari.git remote: http://rubygems.org/
revision: 118927a42e57d6608c10d85b8a62acfc7c175974 specs:
specs: actionmailer (3.1.4)
kaminari (0.13.0) actionpack (= 3.1.4)
actionpack (>= 3.0.0) mail (~> 2.3.0)
activesupport (>= 3.0.0) actionpack (3.1.4)
railties (>= 3.0.0) activemodel (= 3.1.4)
activesupport (= 3.1.4)
GEM builder (~> 3.0.0)
remote: http://rubygems.org/ erubis (~> 2.7.0)
specs: i18n (~> 0.6)
actionmailer (3.1.4) rack (~> 1.3.6)
actionpack (= 3.1.4) rack-cache (~> 1.1)
mail (~> 2.3.0) rack-mount (~> 0.8.2)
actionpack (3.1.4) rack-test (~> 0.6.1)
activemodel (= 3.1.4) sprockets (~> 2.0.3)
activesupport (= 3.1.4) activemodel (3.1.4)
builder (~> 3.0.0) activesupport (= 3.1.4)
erubis (~> 2.7.0) builder (~> 3.0.0)
i18n (~> 0.6) i18n (~> 0.6)
rack (~> 1.3.6) activerecord (3.1.4)
rack-cache (~> 1.1) activemodel (= 3.1.4)
rack-mount (~> 0.8.2) activesupport (= 3.1.4)
rack-test (~> 0.6.1) arel (~> 2.2.3)
sprockets (~> 2.0.3) tzinfo (~> 0.3.29)
activemodel (3.1.4) activeresource (3.1.4)
activesupport (= 3.1.4) activemodel (= 3.1.4)
builder (~> 3.0.0) activesupport (= 3.1.4)
i18n (~> 0.6) activesupport (3.1.4)
activerecord (3.1.4) multi_json (~> 1.0)
activemodel (= 3.1.4) archive-tar-minitar (0.5.2)
activesupport (= 3.1.4) arel (2.2.3)
arel (~> 2.2.3) bcrypt-ruby (3.0.1)
tzinfo (~> 0.3.29) bcrypt-ruby (3.0.1-x86-mingw32)
activeresource (3.1.4) brakeman (1.5.1)
activemodel (= 3.1.4) activesupport
activesupport (= 3.1.4) erubis (~> 2.6)
activesupport (3.1.4) haml (~> 3.0)
multi_json (~> 1.0) i18n
archive-tar-minitar (0.5.2) ruby2ruby (~> 1.2)
arel (2.2.3) ruport (~> 1.6)
bcrypt-ruby (3.0.1) sass (~> 3.0)
bcrypt-ruby (3.0.1-x86-mingw32) bson (1.6.1)
brakeman (1.5.1) bson_ext (1.6.1)
activesupport bson (~> 1.6.1)
erubis (~> 2.6) builder (3.0.0)
haml (~> 3.0) carrierwave (0.5.8)
i18n activesupport (~> 3.0)
ruby2ruby (~> 1.2) carrierwave-mongoid (0.1.3)
ruport (~> 1.6) carrierwave (>= 0.5.6)
sass (~> 3.0) mongoid (~> 2.1)
bson (1.6.1) chronic (0.6.7)
bson_ext (1.6.1) coffee-rails (3.1.1)
bson (~> 1.6.1) coffee-script (>= 2.2.0)
builder (3.0.0) railties (~> 3.1.0)
carrierwave (0.5.8) coffee-script (2.2.0)
activesupport (~> 3.0) coffee-script-source
carrierwave-mongoid (0.1.3) execjs
carrierwave (>= 0.5.6) coffee-script-source (1.2.0)
mongoid (~> 2.1) color (1.4.1)
chronic (0.6.7) columnize (0.3.6)
coffee-rails (3.1.1) database_cleaner (0.7.1)
coffee-script (>= 2.2.0) delorean (1.2.0)
railties (~> 3.1.0) chronic
coffee-script (2.2.0) devise (1.5.3)
coffee-script-source bcrypt-ruby (~> 3.0)
execjs orm_adapter (~> 0.0.3)
coffee-script-source (1.2.0) warden (~> 1.1)
color (1.4.1) diff-lcs (1.1.3)
columnize (0.3.6) encrypted_strings (0.3.3)
database_cleaner (0.7.1) erubis (2.7.0)
delorean (1.2.0) exception_notification (2.5.2)
chronic actionmailer (>= 3.0.4)
devise (1.5.3) execjs (1.3.0)
bcrypt-ruby (~> 3.0) multi_json (~> 1.0)
orm_adapter (~> 0.0.3) factory_girl (2.6.3)
warden (~> 1.1) activesupport (>= 2.3.9)
diff-lcs (1.1.3) factory_girl_rails (1.7.0)
encrypted_strings (0.3.3) factory_girl (~> 2.6.0)
erubis (2.7.0) railties (>= 3.0.0)
exception_notification (2.5.2) fastercsv (1.5.4)
actionmailer (>= 3.0.4) haml (3.1.4)
execjs (1.3.0) hike (1.2.1)
multi_json (~> 1.0) hoe (2.16.1)
factory_girl (2.6.3) rake (~> 0.8)
activesupport (>= 2.3.9) i18n (0.6.0)
factory_girl_rails (1.7.0) jquery-rails (1.0.19)
factory_girl (~> 2.6.0) railties (~> 3.0)
railties (>= 3.0.0) thor (~> 0.14)
fastercsv (1.5.4) json (1.6.5)
haml (3.1.4) kaminari (0.13.0)
hike (1.2.1) actionpack (>= 3.0.0)
hoe (2.16.1) activesupport (>= 3.0.0)
rake (~> 0.8) railties (>= 3.0.0)
i18n (0.6.0) libv8 (3.3.10.4)
jquery-rails (1.0.19) linecache19 (0.5.12)
railties (~> 3.0) ruby_core_source (>= 0.1.4)
thor (~> 0.14) mail (2.3.3)
json (1.6.5) i18n (>= 0.4.0)
linecache19 (0.5.12) mime-types (~> 1.16)
ruby_core_source (>= 0.1.4) treetop (~> 1.4.8)
mail (2.3.3) mime-types (1.17.2)
i18n (>= 0.4.0) mini_magick (3.4)
mime-types (~> 1.16) subexec (~> 0.2.1)
treetop (~> 1.4.8) mongo (1.6.1)
mime-types (1.17.2) bson (~> 1.6.1)
mini_magick (3.4) mongo_session_store-rails3 (3.0.5)
subexec (~> 0.2.1) actionpack (>= 3.0)
mongo (1.6.1) mongo
bson (~> 1.6.1) mongoid (2.4.6)
mongo_session_store-rails3 (3.0.5) activemodel (~> 3.1)
actionpack (>= 3.0) mongo (~> 1.3)
mongo tzinfo (~> 0.3.22)
mongoid (2.4.6) mongoid-encryptor (0.0.5)
activemodel (~> 3.1) activesupport (~> 3.0)
mongo (~> 1.3) encrypted_strings (~> 0.3.3)
tzinfo (~> 0.3.22) mongoid (~> 2)
mongoid-encryptor (0.0.5) multi_json (1.1.0)
activesupport (~> 3.0) nokogiri (1.5.2)
encrypted_strings (~> 0.3.3) nokogiri (1.5.2-x86-mingw32)
mongoid (~> 2) orm_adapter (0.0.6)
multi_json (1.1.0) pdf-writer (1.1.8)
nokogiri (1.5.2) color (>= 1.4.0)
nokogiri (1.5.2-x86-mingw32) transaction-simple (~> 1.3)
orm_adapter (0.0.6) polyglot (0.3.3)
pdf-writer (1.1.8) rack (1.3.6)
color (>= 1.4.0) rack-cache (1.2)
transaction-simple (~> 1.3) rack (>= 0.4)
polyglot (0.3.3) rack-mount (0.8.3)
rack (1.3.6) rack (>= 1.0.0)
rack-cache (1.2) rack-protection (1.2.0)
rack (>= 0.4) rack
rack-mount (0.8.3) rack-ssl (1.3.2)
rack (>= 1.0.0) rack
rack-protection (1.2.0) rack-test (0.6.1)
rack rack (>= 1.0)
rack-ssl (1.3.2) radius (0.7.3)
rack rails (3.1.4)
rack-test (0.6.1) actionmailer (= 3.1.4)
rack (>= 1.0) actionpack (= 3.1.4)
radius (0.7.3) activerecord (= 3.1.4)
rails (3.1.4) activeresource (= 3.1.4)
actionmailer (= 3.1.4) activesupport (= 3.1.4)
actionpack (= 3.1.4) bundler (~> 1.0)
activerecord (= 3.1.4) railties (= 3.1.4)
activeresource (= 3.1.4) railties (3.1.4)
activesupport (= 3.1.4) actionpack (= 3.1.4)
bundler (~> 1.0) activesupport (= 3.1.4)
railties (= 3.1.4) rack-ssl (~> 1.3.2)
railties (3.1.4) rake (>= 0.8.7)
actionpack (= 3.1.4) rdoc (~> 3.4)
activesupport (= 3.1.4) thor (~> 0.14.6)
rack-ssl (~> 1.3.2) rake (0.9.2.2)
rake (>= 0.8.7) rdoc (3.12)
rdoc (~> 3.4) json (~> 1.4)
thor (~> 0.14.6) rspec (2.8.0)
rake (0.9.2.2) rspec-core (~> 2.8.0)
rdoc (3.12) rspec-expectations (~> 2.8.0)
json (~> 1.4) rspec-mocks (~> 2.8.0)
rspec (2.8.0) rspec-core (2.8.0)
rspec-core (~> 2.8.0) rspec-expectations (2.8.0)
rspec-expectations (~> 2.8.0) diff-lcs (~> 1.1.2)
rspec-mocks (~> 2.8.0) rspec-mocks (2.8.0)
rspec-core (2.8.0) rspec-rails (2.8.1)
rspec-expectations (2.8.0) actionpack (>= 3.0)
diff-lcs (~> 1.1.2) activesupport (>= 3.0)
rspec-mocks (2.8.0) railties (>= 3.0)
rspec-rails (2.8.1) rspec (~> 2.8.0)
actionpack (>= 3.0) ruby-debug-base19 (0.11.25)
activesupport (>= 3.0) columnize (>= 0.3.1)
railties (>= 3.0) linecache19 (>= 0.5.11)
rspec (~> 2.8.0) ruby_core_source (>= 0.1.4)
ruby-debug-base19 (0.11.25) ruby-debug19 (0.11.6)
columnize (>= 0.3.1) columnize (>= 0.3.1)
linecache19 (>= 0.5.11) linecache19 (>= 0.5.11)
ruby_core_source (>= 0.1.4) ruby-debug-base19 (>= 0.11.19)
ruby-debug19 (0.11.6) ruby2ruby (1.3.1)
columnize (>= 0.3.1) ruby_parser (~> 2.0)
linecache19 (>= 0.5.11) sexp_processor (~> 3.0)
ruby-debug-base19 (>= 0.11.19) ruby_core_source (0.1.5)
ruby2ruby (1.3.1) archive-tar-minitar (>= 0.5.2)
ruby_parser (~> 2.0) ruby_parser (2.3.1)
sexp_processor (~> 3.0) sexp_processor (~> 3.0)
ruby_core_source (0.1.5) rubyzip (0.9.6.1)
archive-tar-minitar (>= 0.5.2) ruport (1.6.3)
ruby_parser (2.3.1) fastercsv
sexp_processor (~> 3.0) pdf-writer (= 1.1.8)
rubyzip (0.9.6.1) sass (3.1.15)
ruport (1.6.3) sass-rails (3.1.5)
fastercsv actionpack (~> 3.1.0)
pdf-writer (= 1.1.8) railties (~> 3.1.0)
sass (3.1.15) sass (~> 3.1.10)
sass-rails (3.1.5) tilt (~> 1.3.2)
actionpack (~> 3.1.0) sexp_processor (3.1.0)
railties (~> 3.1.0) shoulda-matchers (1.0.0)
sass (~> 3.1.10) simplecov (0.6.1)
tilt (~> 1.3.2) multi_json (~> 1.0)
sexp_processor (3.1.0) simplecov-html (~> 0.5.3)
shoulda-matchers (1.0.0) simplecov-html (0.5.3)
simplecov (0.6.1) sinatra (1.3.2)
multi_json (~> 1.0) rack (~> 1.3, >= 1.3.6)
simplecov-html (~> 0.5.3) rack-protection (~> 1.2)
simplecov-html (0.5.3) tilt (~> 1.3, >= 1.3.3)
sinatra (1.3.2) sprockets (2.0.3)
rack (~> 1.3, >= 1.3.6) hike (~> 1.2)
rack-protection (~> 1.2) rack (~> 1.0)
tilt (~> 1.3, >= 1.3.3) tilt (~> 1.1, != 1.3.0)
spork (0.9.0) subexec (0.2.1)
spork (0.9.0-x86-mingw32) therubyracer (0.10.1)
win32-process libv8 (~> 3.3.10)
sprockets (2.0.3) thor (0.14.6)
hike (~> 1.2) tilt (1.3.3)
rack (~> 1.0) tinymce-rails (3.4.8)
tilt (~> 1.1, != 1.3.0) railties (>= 3.1)
subexec (0.2.1) transaction-simple (1.4.0)
thor (0.14.6) hoe (>= 1.1.7)
tilt (1.3.3) treetop (1.4.10)
tinymce-rails (3.4.8) polyglot
railties (>= 3.1) polyglot (>= 0.3.1)
transaction-simple (1.4.0) tzinfo (0.3.32)
hoe (>= 1.1.7) uglifier (1.2.3)
treetop (1.4.10) execjs (>= 0.3.0)
polyglot multi_json (>= 1.0.2)
polyglot (>= 0.3.1) warden (1.1.1)
tzinfo (0.3.32) rack (>= 1.0)
uglifier (1.2.3) watchr (0.7)
execjs (>= 0.3.0)
multi_json (>= 1.0.2) PLATFORMS
warden (1.1.1) ruby
rack (>= 1.0) x86-mingw32
watchr (0.7)
win32-api (1.4.8-x86-mingw32) DEPENDENCIES
win32-process (0.6.5) brakeman
windows-pr (>= 1.1.2) bson_ext
windows-api (0.4.1) carrierwave
win32-api (>= 1.4.5) carrierwave-mongoid
windows-pr (1.2.1) coffee-rails
win32-api (>= 1.4.5) database_cleaner
windows-api (>= 0.3.0) delorean
devise (= 1.5.3)
PLATFORMS exception_notification
ruby execjs
x86-mingw32 factory_girl_rails
jquery-rails
DEPENDENCIES kaminari
brakeman mini_magick
bson_ext mongo_session_store-rails3
carrierwave mongoid
carrierwave-mongoid mongoid-encryptor
coffee-rails nokogiri
database_cleaner radius
delorean rails (>= 3.1.0, < 3.2.0)
devise (= 1.5.3) rake
exception_notification rspec (~> 2.0)
execjs rspec-rails (~> 2.0)
factory_girl_rails ruby-debug19
jquery-rails rubyzip
kaminari! sass-rails
mini_magick shoulda-matchers
mongo_session_store-rails3 simplecov
mongoid sinatra
mongoid-encryptor sprockets
nokogiri therubyracer
radius tinymce-rails
rails (>= 3.1.0, < 3.2.0) uglifier
rake watchr
rspec (~> 2.0)
rspec-rails (~> 2.0)
ruby-debug19
rubyzip
sass-rails
shoulda-matchers
simplecov
sinatra
spork
sprockets
tinymce-rails
uglifier
watchr

File diff suppressed because it is too large Load Diff

View File

@ -1,30 +1,42 @@
class DesktopPublicationsController< ApplicationController class DesktopPublicationsController< ApplicationController
def journal_p def journal_p
render "desktop/journal_p", :layout => false render "desktop/journal_p", :layout => false
end end
def journal_p_list def journal_p_list
render "desktop/journal_pages/list", :layout => false render "desktop/journal_pages/list", :layout => false
end end
def journal_p_add def journal_p_add
render "desktop/journal_pages/add", :layout => false render "desktop/journal_pages/add", :layout => false
end end
def create_journal def books
Journal.create(user_id: current_user.id, title: "2012, Javascript") render "desktop/books", :layout => false
b = Array.new end
b << {"success"=>"true"}
render :json=>b.to_json def books_list
end render "desktop/books/list", :layout => false
end
def getjournals
@journals = current_user.journals def books_add
data = Array.new render "desktop/books/add", :layout => false
@journals.each do |journal| end
@papers = journal.papers.all
data << {"title" => journal.title, "papers" => @papers} def create_journal
end Journal.create(user_id: current_user.id, title: "2012, Javascript")
render :json=>data.to_json b = Array.new
end b << {"success"=>"true"}
end render :json=>b.to_json
end
def getjournals
@journals = current_user.journals
data = Array.new
@journals.each do |journal|
@papers = journal.papers.all
data << {"title" => journal.title, "papers" => @papers}
end
render :json=>data.to_json
end
end

View File

@ -0,0 +1,33 @@
<div id="books">
<div id="content">
<div id="header" class="hh3">
<div class="dtitle w2 hh3 hp">
<span class="thmtxth">Books</span>
</div>
<div id="search_app" class="hfn w2 hh2 hp thmc3">
<input type="text" class="ini_input form" value="Search" id="searchbox" />
<input type="submit" class="ini_input submit thmc1" value="Submit"/>
</div>
</div>
<div id="holder">
<div id="panel_l" class="ph">
<div class="s_menu sm_v">
<ul id='setting_left_nav'>
<li><a href="list" class="hh2 w2 hp active thmc1 thmtxt" onclick='return false;'>List</a></li>
<li><a href="addbook" class="admtxt hh2 w2 hp" onclick='return false;'>Add/Edit</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Books</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Co-Authors</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Tags &amp; Keywords</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Analysis</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Import</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Export</a></li>
</ul>
</div>
</div>
<div id="panel_r" class="ph pw admbg hp">
</div>
<div class="clear"></div>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,87 @@
<div class="toolbar hh2">
<div class="fn_g hp">
<button class="fn_btn hh2 thmc2 thmtxt">Save</button>
<button class="fn_btn hh2 admbg2">Cancel</button>
</div>
<div class="hh2 hp sdm">
<div class="sdm_t hh2">Year</div>
<div class="admbg sdm_o">
<ul>
<li><a class="hp hh2 admtxt" href="">2012</a></li>
<li><a class="hp hh2 admtxt" href="">2011</a></li>
<li><a class="hp hh2 admtxt" href="">2010</a></li>
<li><a class="hp hh2 admtxt" href="">2009</a></li>
<li><a class="hp hh2 admtxt" href="">2008</a></li>
<li><a class="hp hh2 admtxt" href="">2007</a></li>
<li><a class="hp hh2 admtxt" href="">2006</a></li>
<li><a class="hp hh2 admtxt" href="">2005</a></li>
<li><a class="hp hh2 admtxt" href="">2004</a></li>
<li><a class="hp hh2 admtxt" href="">2003</a></li>
<li><a class="hp hh2 admtxt" href="">2002</a></li>
<li><a class="hp hh2 admtxt" href="">2001</a></li>
</ul>
</div>
</div>
<div class="hh2 hp sdm">
<div class="sdm_t hh2">Language</div>
<div class="admbg sdm_o">
<ul>
<li><a class="hp hh2 admtxt" href="">English</a></li>
<li><a class="hp hh2 admtxt" href="">Chinese</a></li>
</ul>
</div>
</div>
<div class="hh2 hp sdm">
<div class="sdm_t hh2"><span class="icon-question-sign"></span></div>
</div>
</div>
<div id="paper_add" class="tinycanvas vp">
<div class="scrollbar sb_h vp"><div class="track"><div class="thumb thmc2"><div class="end"></div></div></div></div>
<div class="viewport">
<div class="overview">
<div class="s_grid_con s_form">
<ul>
<li class="s_grid_row"><input type="radio" name="" value="Books" />Books
<input type="radio" name="" value="Chapter" /> Chapter</li>
<li class="s_grid_row"><textarea class="s_grid_6 s_grid" name="" id="">Book Title</textarea></li>
<li class="s_grid_row"><textarea class="s_grid_6 s_grid" name="" id="" rows="10">Chapters and sections</textarea></li>
<li class="s_grid_row"><input class="s_grid s_grid_1" type="text" value="page"> ~ <input class="s_grid s_grid_1" type="text" value="page"><input class="s_grid s_grid_2" type="text" value="Publisher"></li>
<li class="s_grid_row"><input class="s_grid s_grid_2" type="text" value="Location"><input class="s_grid s_grid_2" type="text" value="Chief editor"></li>
<li class="s_grid_row"><input class="s_grid s_grid_3" type="text" value="ISSN"></li> <li class="s_grid_row"><label class="s_grid_2 s_grid" for="">Reference URL</label><input class="s_grid_4 s_grid" type="text" value="www.sample.com"></li>
</ul>
</div>
<div class="s_grid_con s_form">
<ul>
<li class="s_grid_row"><textarea class="s_grid s_grid_6" name="" id="">Author</textarea><span class="icon-plus input_append"></span></li>
<li class="s_grid_row">
<select name="" id="" class="s_grid s_grid_4">
<option value="">Author Type</option>
<option value="">First Author</option>
<option value="">Corresponding Author</option>
<option value="">Second Author</option>
<option value="">Third Author</option>
<option value="">Fourth Author</option>
</select>
<select name="" id="" class="s_grid s_grid_2">
<option value="">Status</option>
<option value="">Published</option>
<option value="">Pending</option>
<option value="">Writing</option>
</select>
</li>
<li class="s_grid_row"><label class="s_grid s_grid_2" for="">Date of Publication</label><input class="s_grid s_grid_4" type="text" value="2012 / 05 / 01"></li>
<li class="s_grid_row"><input class="s_grid s_grid_6" type="text" value="Tags"><span class="icon-plus input_append"></li>
<li class="s_grid_row"><input class="s_grid s_grid_6" type="text" value="Associated Project"><span class="icon-plus input_append"></span></li>
<li class="s_grid_row"><label class="s_grid s_grid_2" for="">Abstract</label><input type="file"></li>
<li class="s_grid_row"><label class="s_grid s_grid_2" for="">Full Text</label><input type="file"></li>
</ul>
</div>
<div class="s_grid_con s_form">
<ul>
<li class="s_grid_row"><textarea name="" id="" rows="26" class="s_grid s_grid_6">Abstract</textarea></li>
</ul>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,75 @@
<div class="toolbar hh2">
<div class="hh2 hp sdm">
<div class="sdm_t hh2"><span class="icon-check"></span></div>
<div class="admbg sdm_o">
<ul id="journal_selection_options">
<li><a class="hp hh2 admtxt" href="all">All</a></li>
<li><a class="hp hh2 admtxt" href="none">None</a></li>
</ul>
</div>
</div>
<div class="hh2 hp sdm">
<div class="sdm_t hh2">More</div>
<div class="admbg sdm_o">
<ul>
<li><a class="hp hh2 admtxt" href="">Delete</a></li>
<li><a class="hp hh2 admtxt" href="">Tag</a></li>
</ul>
</div>
</div>
<div class="hh2 hp sdm">
<div class="sdm_t hh2">Tag</div>
<div class="admbg sdm_o">
<ul>
<li><a class="hp hh2 admtxt" href="">All</a></li>
<li><a class="hp hh2 admtxt" href="">Starred</a></li>
<li><a class="hp hh2 admtxt" href="">MIT</a></li>
</ul>
</div>
</div>
<div class="hh2 hp sdm">
<div class="sdm_t hh2">Status</div>
<div class="admbg sdm_o">
<ul>
<li><a class="hp hh2 admtxt" href="">All</a></li>
<li><a class="hp hh2 admtxt" href="">Published</a></li>
<li><a class="hp hh2 admtxt" href="">Pending</a></li>
</ul>
</div>
</div>
<div class="hh2 hp sdm">
<div class="sdm_t hh2">View</div>
<div class="admbg sdm_o">
<ul id="journal_view_selection">
<li><a class="hp hh2 admtxt" href="journal">Journal</a></li>
<li><a class="hp hh2 admtxt" href="title">Title</a></li>
<li><a class="hp hh2 admtxt" href="file">File</a></li>
<li><a class="hp hh2 admtxt" href="keywords">Keywords</a></li>
<li><a class="hp hh2 admtxt" href="abstract">Abstract</a></li>
</ul>
</div>
</div>
<div class="hh2 hp sdm">
<div class="sdm_t hh2">Share</div>
<div class="admbg sdm_o">
<ul>
<li><a class="hp hh2 admtxt" href="">Full</a></li>
<li><a class="hp hh2 admtxt" href="">Abstract</a></li>
<li><a class="hp hh2 admtxt" href="">Friends</a></li>
<li><a class="hp hh2 admtxt" href="">Private</a></li>
<li><a class="hp hh2 admtxt" href="">Group</a></li>
</ul>
</div>
</div>
<div class="hh2 hp sdm">
<div class="sdm_t hh2"><span class="icon-question-sign"></span></div>
</div>
</div>
<div id="paper_list" class="tinycanvas vp">
<div class="scrollbar sb_h vp"><div class="track"><div class="thumb thmc2"><div class="end"></div></div></div></div>
<div class="viewport">
<div class="overview">
</div>
</div>
</div>

View File

@ -0,0 +1 @@
this is seminar page.

View File

@ -1,197 +1,201 @@
Orbit::Application.routes.draw do Orbit::Application.routes.draw do
devise_for :users devise_for :users
# routes for sinatra app # routes for sinatra app
match '/site/set_registered', :to => CentralServerExchangeApp match '/site/set_registered', :to => CentralServerExchangeApp
match '/site/public_key', :to => CentralServerExchangeApp match '/site/public_key', :to => CentralServerExchangeApp
match '/site/update', :to => GithubApp match '/site/update', :to => GithubApp
match '/purchase/:type', :to => CentralServerExchangeApp match '/purchase/:type', :to => CentralServerExchangeApp
match 'load_orbit_bar' => 'pages#load_orbit_bar' match 'load_orbit_bar' => 'pages#load_orbit_bar'
# routes for admin # routes for admin
namespace :admin do namespace :admin do
resources :assets resources :assets
resources :app_auths resources :app_auths
resources :object_auths do resources :object_auths do
collection do collection do
match 'new/:type/:obj_id',:action => 'new',:via => "get",:as => :init match 'new/:type/:obj_id',:action => 'new',:via => "get",:as => :init
end end
member do member do
match ':id/create_role',:action => 'create_role',:via => "post",:as => :create_role match ':id/create_role',:action => 'create_role',:via => "post",:as => :create_role
match 'remove/:type/:target_id' ,:action=> 'remove_role',:via => "delete",:as =>:remove match 'remove/:type/:target_id' ,:action=> 'remove_role',:via => "delete",:as =>:remove
end end
end end
resources :ad_banners do resources :ad_banners do
collection do collection do
match 'new_ad_image' => 'ad_images#new',:as => :new_ad_image,:via => :get match 'new_ad_image' => 'ad_images#new',:as => :new_ad_image,:via => :get
match 'new_ad_image' => 'ad_images#create',:as => :create_ad_image,:via => :post match 'new_ad_image' => 'ad_images#create',:as => :create_ad_image,:via => :post
end end
resources :ad_images ,:except => [:show,:index] resources :ad_images ,:except => [:show,:index]
end end
resources :dashboards resources :dashboards
resources :designs do resources :designs do
collection do collection do
get 'upload_package' get 'upload_package'
post 'upload_package' post 'upload_package'
end end
member do member do
post 'edit_file' => 'designs#edit_file' post 'edit_file' => 'designs#edit_file'
end end
end end
resources :infos do resources :infos do
get 'add_attribute_field' get 'add_attribute_field'
end end
resources :items resources :items
resources :links do resources :links do
member do member do
get 'delete' get 'delete'
end end
end end
resources :pages do resources :pages do
member do member do
get 'delete' get 'delete'
get 'reload_themes' get 'reload_themes'
end end
end end
resources :module_apps do resources :module_apps do
resources :app_auths do resources :app_auths do
member do member do
match 'remove/:type/:target_id' ,:action=> 'remove',:via => "delete",:as =>:remove match 'remove/:type/:target_id' ,:action=> 'remove',:via => "delete",:as =>:remove
end end
end end
member do member do
match 'assign_manager' ,:action=> 'assign_manager',:via => "post",:as =>:assign_manager match 'assign_manager' ,:action=> 'assign_manager',:via => "post",:as =>:assign_manager
match 'assign_sub_manager' ,:action=> 'assign_sub_manager',:via => "post",:as =>:assign_sub_manager match 'assign_sub_manager' ,:action=> 'assign_sub_manager',:via => "post",:as =>:assign_sub_manager
match 'remove_manager/:app_manager_id' ,:action=> 'remove_manager',:via => "delete",:as =>:remove_manager match 'remove_manager/:app_manager_id' ,:action=> 'remove_manager',:via => "delete",:as =>:remove_manager
match 'remove_sub_manager/:app_sub_manager_id' ,:action=> 'remove_sub_manager',:via => "delete",:as =>:remove_sub_manager match 'remove_sub_manager/:app_sub_manager_id' ,:action=> 'remove_sub_manager',:via => "delete",:as =>:remove_sub_manager
get 'reload_frontend_pages' get 'reload_frontend_pages'
end end
end end
resources :page_parts do resources :page_parts do
member do member do
get 'reload_widgets' get 'reload_widgets'
end end
end end
resources :purchases do resources :purchases do
collection do collection do
get 'install_app' get 'install_app'
end end
member do member do
get 'download' get 'download'
end end
end end
resources :roles do resources :roles do
get 'add_sub_role' get 'add_sub_role'
get 'add_attribute_field' get 'add_attribute_field'
end end
resources :sites resources :sites
resources :snippets resources :snippets
resources :tags resources :tags
resources :translations resources :translations
resources :users resources :users
end end
# end admin # end admin
namespace :panel do namespace :panel do
resources :users resources :users
end end
match '/desktop/'=>'desktop#index' match '/desktop/'=>'desktop#index'
# Sinatra Routes start # Sinatra Routes start
# match '/desktop/desktop', :to => Desktopapp::DesktopApp # match '/desktop/desktop', :to => Desktopapp::DesktopApp
# match '/desktop/app_manager', :to => Desktopapp::DesktopApp # match '/desktop/app_manager', :to => Desktopapp::DesktopApp
# match '/desktop/sections', :to => Desktopapp::DesktopApp # match '/desktop/sections', :to => Desktopapp::DesktopApp
# match '/desktop/settings', :to => Desktopapp::DesktopApp # match '/desktop/settings', :to => Desktopapp::DesktopApp
# match '/desktop/get_desktop_settings/', :to => Desktopapp::DesktopApp # match '/desktop/get_desktop_settings/', :to => Desktopapp::DesktopApp
# match '/desktop/save_desktop_settings/', :to => Desktopapp::DesktopApp # match '/desktop/save_desktop_settings/', :to => Desktopapp::DesktopApp
# match '/desktop/getgroups/', :to => Desktopapp::DesktopApp # match '/desktop/getgroups/', :to => Desktopapp::DesktopApp
# match '/desktop/getsectionlist/', :to => Desktopapp::DesktopApp # match '/desktop/getsectionlist/', :to => Desktopapp::DesktopApp
# match '/desktop/settingthemes/', :to => Desktopapp::DesktopApp # match '/desktop/settingthemes/', :to => Desktopapp::DesktopApp
# match '/desktop/settingsections/', :to => Desktopapp::DesktopApp # match '/desktop/settingsections/', :to => Desktopapp::DesktopApp
# match '/desktop/getapplist/', :to => Desktopapp::DesktopApp # match '/desktop/getapplist/', :to => Desktopapp::DesktopApp
# match '/desktop/newpositions/', :to => Desktopapp::DesktopApp # match '/desktop/newpositions/', :to => Desktopapp::DesktopApp
# match '/desktop/settingconnection/', :to => Desktopapp::DesktopApp # match '/desktop/settingconnection/', :to => Desktopapp::DesktopApp
# match '/desktop/journal_p/', :to => Desktopapp::DesktopAppPublications # match '/desktop/journal_p/', :to => Desktopapp::DesktopAppPublications
# match '/desktop/journal_p_list/', :to => Desktopapp::DesktopAppPublications # match '/desktop/journal_p_list/', :to => Desktopapp::DesktopAppPublications
# match '/desktop/journal_p_add/', :to => Desktopapp::DesktopAppPublications # match '/desktop/journal_p_add/', :to => Desktopapp::DesktopAppPublications
# match '/desktop_publications/getjournals', :to => Desktopapp::DesktopAppPublications # match '/desktop_publications/getjournals', :to => Desktopapp::DesktopAppPublications
# match '/desktop/twitter/', :to => Desktopapp::Otheraccounts # match '/desktop/twitter/', :to => Desktopapp::Otheraccounts
# match '/desktop/forgmail/', :to => Desktopapp::Otheraccounts # match '/desktop/forgmail/', :to => Desktopapp::Otheraccounts
# match '/desktop/getaccounts', :to => Desktopapp::Otheraccounts # match '/desktop/getaccounts', :to => Desktopapp::Otheraccounts
# match '/desktop/save_account_info/', :to => Desktopapp::Otheraccounts # match '/desktop/save_account_info/', :to => Desktopapp::Otheraccounts
# match '/desktop_appstore/appstore', :to => Desktopapp::DesktopAppAppstore # match '/desktop_appstore/appstore', :to => Desktopapp::DesktopAppAppstore
# match '/desktop_appstore/widgets', :to => Desktopapp::DesktopAppAppstore # match '/desktop_appstore/widgets', :to => Desktopapp::DesktopAppAppstore
# match '/desktop_appstore/getuserwidgets', :to => Desktopapp::DesktopAppAppstore # match '/desktop_appstore/getuserwidgets', :to => Desktopapp::DesktopAppAppstore
# match '/desktop_appstore/widgets_settings', :to => Desktopapp::DesktopAppAppstore # match '/desktop_appstore/widgets_settings', :to => Desktopapp::DesktopAppAppstore
# Sinatra Routes end # Sinatra Routes end
match '/desktop/desktop'=>'desktop#desktop' match '/desktop/desktop'=>'desktop#desktop'
match '/desktop/app_manager'=>'desktop#app_manager' match '/desktop/app_manager'=>'desktop#app_manager'
match '/desktop/sections'=>'desktop#sections' match '/desktop/sections'=>'desktop#sections'
match '/desktop/settings'=>'desktop#settings' match '/desktop/settings'=>'desktop#settings'
match '/desktop/get_desktop_settings/'=>'desktop#get_desktop_settings' match '/desktop/get_desktop_settings/'=>'desktop#get_desktop_settings'
match '/desktop/save_desktop_settings/'=>'desktop#save_desktop_settings' match '/desktop/save_desktop_settings/'=>'desktop#save_desktop_settings'
match '/desktop/getgroups/'=>'desktop#getgroups' match '/desktop/getgroups/'=>'desktop#getgroups'
match '/desktop/getsectionlist/'=>'desktop#getsectionlist' match '/desktop/getsectionlist/'=>'desktop#getsectionlist'
match '/desktop/settingthemes/'=>'desktop#settingthemes' match '/desktop/settingthemes/'=>'desktop#settingthemes'
match '/desktop/settingsections/'=>'desktop#settingsections' match '/desktop/settingsections/'=>'desktop#settingsections'
match '/desktop/getapplist/'=>'desktop#getapplist' match '/desktop/getapplist/'=>'desktop#getapplist'
match '/desktop/newpositions/'=>'desktop#newpositions' match '/desktop/newpositions/'=>'desktop#newpositions'
match '/desktop/settingconnection/'=>'desktop#settingconnection' match '/desktop/settingconnection/'=>'desktop#settingconnection'
match '/desktop/journal_p/'=>'desktop_publications#journal_p' match '/desktop/journal_p/'=>'desktop_publications#journal_p'
match '/desktop/journal_p_list/'=>'desktop_publications#journal_p_list' match '/desktop/journal_p_list/'=>'desktop_publications#journal_p_list'
match '/desktop/journal_p_add/'=>'desktop_publications#journal_p_add' match '/desktop/journal_p_add/'=>'desktop_publications#journal_p_add'
match '/desktop_publications/getjournals' => 'desktop_publications#getjournals' match '/desktop_publications/getjournals' => 'desktop_publications#getjournals'
match '/desktop/books' => 'desktop_publications#books'
match '/desktop/twitter/'=>'otheraccounts#twitter' match '/desktop/books_list/'=>'desktop_publications#books_list'
match '/desktop/forgmail/'=>'otheraccounts#gmail' match '/desktop/books_add/'=>'desktop_publications#books_add'
match '/desktop/getaccounts'=>'otheraccounts#getaccounts'
match '/desktop/save_account_info/'=>'otheraccounts#saveaccountinfo'
match '/desktop/twitter/'=>'otheraccounts#twitter'
match '/desktop_appstore/appstore'=>'desktop_appstore#appstore' match '/desktop/forgmail/'=>'otheraccounts#gmail'
match '/desktop_appstore/widgets'=>'desktop_appstore#widgets' match '/desktop/getaccounts'=>'otheraccounts#getaccounts'
match '/desktop_appstore/getuserwidgets'=>'desktop_appstore#getuserwidgets' match '/desktop/save_account_info/'=>'otheraccounts#saveaccountinfo'
match '/desktop_appstore/widgets_settings'=>'desktop_appstore#widgets_settings'
match '/desktop_appstore/appstore'=>'desktop_appstore#appstore'
match '/desktop_orbit/orbit' => 'desktop_orbit#orbit' match '/desktop_appstore/widgets'=>'desktop_appstore#widgets'
match '/desktop_orbit/getevents' => 'desktop_orbit#getevents' match '/desktop_appstore/getuserwidgets'=>'desktop_appstore#getuserwidgets'
#match '/desktop_orbit/getevents' => 'desktop_publications#create_journal' match '/desktop_appstore/widgets_settings'=>'desktop_appstore#widgets_settings'
match '/desktop/temp_func/'=>'desktop#temp_func' match '/desktop_orbit/orbit' => 'desktop_orbit#orbit'
match '/desktop_orbit/getevents' => 'desktop_orbit#getevents'
match '/panel/:app_name/front_end/:app_action/:id' => 'pages#show_from_link', :constraints => lambda { |request| #match '/desktop_orbit/getevents' => 'desktop_publications#create_journal'
!request.query_string.include?("inner=true")
} match '/desktop/temp_func/'=>'desktop#temp_func'
match '/panel/:app_name/front_end/:app_action' => 'pages#index_from_link', :constraints => lambda { |request| match '/panel/:app_name/front_end/:app_action/:id' => 'pages#show_from_link', :constraints => lambda { |request|
!request.query_string.include?("inner=true") !request.query_string.include?("inner=true")
} }
# routes for gridfs files match '/panel/:app_name/front_end/:app_action' => 'pages#index_from_link', :constraints => lambda { |request|
match "/gridfs/*path" => "gridfs#serve" !request.query_string.include?("inner=true")
# match "/images/*path" => "gridfs#serve_images" }
# match "/admin/pages/images/*path" => "gridfs#serve_images"
# routes for gridfs files
# routes for pages to generate match "/gridfs/*path" => "gridfs#serve"
match '*page_name' => 'pages#show', :as => :page, :constraints => lambda{|request| # match "/images/*path" => "gridfs#serve_images"
!request.path.starts_with?("/panel") # match "/admin/pages/images/*path" => "gridfs#serve_images"
}
# routes for pages to generate
root :to => 'pages#index' match '*page_name' => 'pages#show', :as => :page, :constraints => lambda{|request|
!request.path.starts_with?("/panel")
end }
root :to => 'pages#index'
end