From 1b44175c31b8c317f6f837cca487c5d707762752 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Mon, 7 Jan 2013 23:03:41 -0500 Subject: [PATCH] added home page with recent info, and personal profiles with recent indo --- app/assets/images/synapse.png | Bin 0 -> 6953 bytes app/assets/images/synapse2.png | Bin 0 -> 8504 bytes app/assets/javascripts/Jit/analyze.js | 91 +++++++++++++---------- app/assets/stylesheets/application.css | 21 +++++- app/assets/stylesheets/maps.css.scss | 5 ++ app/assets/stylesheets/synapses.css.scss | 69 ++++++++++++++++- app/controllers/main_controller.rb | 8 ++ app/controllers/users_controller.rb | 6 +- app/views/main/_analyze.html.erb | 2 + app/views/main/home.html.erb | 31 ++++++++ app/views/synapses/_synapse.html.erb | 11 +++ app/views/users/show.html.erb | 22 +++++- config/routes.rb | 2 +- 13 files changed, 215 insertions(+), 53 deletions(-) create mode 100644 app/assets/images/synapse.png create mode 100644 app/assets/images/synapse2.png create mode 100644 app/views/main/home.html.erb create mode 100644 app/views/synapses/_synapse.html.erb diff --git a/app/assets/images/synapse.png b/app/assets/images/synapse.png new file mode 100644 index 0000000000000000000000000000000000000000..8ae3ca7b35cd1cdf58d6e9e9cb80c7f942f1f34e GIT binary patch literal 6953 zcmYjVbyQT}_kDB?-4asLF?2`|-QChKfYKn6G6F+NH&RNcf^;(=-Q6M$0!j#iz;F1h z^JH`UezJ zSL+w@>QSMo>h5~v*bI8|v7uy1telKEL~2otg-hhRJ;aKN=rn@`QE2h;p>gE8+@KiT zMXYVckMUujqGE<`Hv>PtoNvF{9lLK>klw30&#j-p>c$48s|e}}hl0xG>50FG4fK86 z+~$>q;j(xDMA-HAjNW(5D8O}yq$C$pH&!Qr@@57P8|c=|=?2qAJ`f(tXIY?xhNE=* zB#EhGhmrxZ0rB!BfUFWqXl^E}K2U%TSdZA*ZUH(xfHm9O-5DS>_c|*O1u#!#Bu6Po z0vJdgq7(q9=RnnjQH&yB0tUz&)%(POMIHdGYV4>2d~O1|$BFRj0BjHd){Tnb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Vsm`yTa+sHCZx412p7M%=|2zWfNX!QDf-#>l47Z%j2@q$aKW0@Sf zbb52=t({7hx(YBD5$^t!OUi+Yd!6>7;)<#cj%9_zO$E}PyW@A-&uJ^F?+v(I1OTvt z;36Z6*Ebs}Q^*V^vk3rPg5XIiAr&5qMymC@SjyR4RALt7R-_>x*!H7JiO07*q!gGS*-nkh` zWQ0&bc}=|^A;bv3=A5)F)6&YCmg%vPGPz=HJQB%`1_OW0F`31wQRj~QSunh+xm8|LQN7#m za-3o4BoeK|30dJV90SC0U@)26y-xeAXLkBBwoLYa`qLKj_@B1G&@{-E$})r5Qa0S% z{Rc9Q&Yu=uyrzOTJm~eRt6N&Pjr4Y(V5mf#NlG*n)0KW<7zP~60EXd^o0s3=v{^@e zPWv>UFsS4xGRJa|lUE3dSabu&GR*A6ST~WWh+?|x9K_L}%{7+bIBuDnx_Xk7$${Zn z(J46rlVur0!0l{MsWqo@9FHS}mOU>tW10*?2v*gsYZxDV|8j)zhjAPStv(0TT772V zk$``hl}ugdnw|C|j+>@g3NQ=k3HW*d0R3%*5b&*|N}pVx zy62ciZz!kYu~C^q$?4_d%80~Xa|1WqdCQ5md25zT_BD~m_M2mq)|JYG=fuyYuOB_Tr%6I' + numT + ' topics

' + numS + ' synapses

'); +} + +function closeAnalyze() { + analyzeOpen = false; + $('#closeAnalyze').css('display','none'); + $('#sideOptionAnalyze').css('cursor','pointer'); + $('#sideOptionAnalyze').animate({ + width: '64px', + height: '32px' + }, 100); } \ No newline at end of file diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index ab5c6808..28109315 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -65,8 +65,9 @@ h2 { display:block; text-align:center; font-family: "vinyl",sans-serif; - background: #333; + background: url('black_bg.png'); font-size:24px; + line-height:35px; } a { @@ -82,6 +83,11 @@ a { clear:both; } +.spacer { + display:block; + height:50px; +} + .hidden { display: none; } @@ -89,6 +95,18 @@ a { /* * Layout stuffs */ + +.profile { + overflow-y:scroll; + height:100%; + margin-bottom:50px; +} + +.centeredProfile { + margin:0 auto; + display: block; + width: 845px; +} .new_session, .new_user, @@ -387,7 +405,6 @@ input[type="submit"] { #sideOptionAnalyze { top:35%; width:64px; - display:none; } #sideOptionOrganize { diff --git a/app/assets/stylesheets/maps.css.scss b/app/assets/stylesheets/maps.css.scss index e829b8ae..12eda20b 100644 --- a/app/assets/stylesheets/maps.css.scss +++ b/app/assets/stylesheets/maps.css.scss @@ -2,6 +2,11 @@ // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ +.mapdata { + color: #1A1; + font-style: italic; +} + .saveMapLayout { float:left; } diff --git a/app/assets/stylesheets/synapses.css.scss b/app/assets/stylesheets/synapses.css.scss index 73162259..1b69c220 100644 --- a/app/assets/stylesheets/synapses.css.scss +++ b/app/assets/stylesheets/synapses.css.scss @@ -1,3 +1,66 @@ -// Place all the styles related to the synapses controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ +// Place all the styles related to the synapses controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ + + +.synapse { + display:block; + position:relative; + width:215px; + height:320px; + float:left; + margin: 30px 0 30px 50px; +} + +.synapseTopic1 { + position:absolute; + top:0; +} + +.topic1desc { +display: block; +width: 190px; +background: url("bg.png") repeat; +position: relative; +margin-left: 25px; +border-radius: 15px; +padding: 10px 5px 10px 28px; +color: #000; +} + +.synapseTopic1 img { + position:absolute; + top: 15px; + z-index: 30; +} + +.synapseDesc { + position:absolute; + top:22px; + left:8px; + height:30px; + padding:125px 0 125px 35px; + background: url('synapse2.png') no-repeat 0 0; +} + +.synapseTopic2 { + position:absolute; + bottom:0; +} + +.synapseTopic2 img { + position:absolute; + top:-24px; + z-index:30; +} + +.topic2desc { +display: block; +width: 190px; +background: url("bg.png") repeat; +position: relative; +margin-left: 25px; +border-radius: 15px; +padding: 10px 5px 10px 28px; +color: #000; +} \ No newline at end of file diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index 8f08a931..d6fc3079 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -5,6 +5,14 @@ class MainController < ApplicationController respond_to :html, :js, :json + def home + @topics = Topic.order("created_at DESC").limit(3).visibleToUser(@current, nil) + @synapses = Synapse.order("created_at DESC").limit(3).visibleToUser(@current, nil) + @maps = Map.order("created_at DESC").limit(3).visibleToUser(@current, nil) + + respond_with(@topics, @synapses, @maps) + end + def console end diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 73a15553..f603cb31 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -24,9 +24,9 @@ class UsersController < ApplicationController # GET /user def show @user = User.find(params[:id]) - @topics = @user.topics.order("created_at").limit(3) - @synapses = @user.synapses.order("created_at").limit(3) - @maps = @user.maps.order("created_at").limit(3) + @topics = @user.topics.order("created_at DESC").limit(3) + @synapses = @user.synapses.order("created_at DESC").limit(3) + @maps = @user.maps.order("created_at DESC").limit(3) respond_with(@user, @topics, @synapses, @maps) end diff --git a/app/views/main/_analyze.html.erb b/app/views/main/_analyze.html.erb index c9bc412c..c4f92841 100644 --- a/app/views/main/_analyze.html.erb +++ b/app/views/main/_analyze.html.erb @@ -1,4 +1,6 @@ close
Analyze... +
+
\ No newline at end of file diff --git a/app/views/main/home.html.erb b/app/views/main/home.html.erb new file mode 100644 index 00000000..eaacfa60 --- /dev/null +++ b/app/views/main/home.html.erb @@ -0,0 +1,31 @@ +
+ +

Recently Created Topics <%= link_to "see all", topics_url%>

+
+<% @topics.each do |topic| %> + <%= render topic %> +<% end %> +
+
+ +

Recently Created Synapses <%= link_to "see all", synapses_url%>

+
+<% @synapses.each do |synapse| %> + <%= render synapse %> +<% end %> +
+
+ +

Recently Created Maps <%= link_to "see all", maps_url%>

+
+<% @maps.each do |map| %> + <%= render map %> +<% end %> +
+
+ +
+ +

+ Home +

\ No newline at end of file diff --git a/app/views/synapses/_synapse.html.erb b/app/views/synapses/_synapse.html.erb new file mode 100644 index 00000000..b5635949 --- /dev/null +++ b/app/views/synapses/_synapse.html.erb @@ -0,0 +1,11 @@ +<%= div_for synapse do %> +
+

<%= link_to synapse.topic1.name, topic_url(synapse.topic1) %>

+ <%= image_tag synapse.topic1.metacode.icon, :class => 'icon', :size => '50x50' %> +
+
<%= synapse.desc %>
+
+ <%= image_tag synapse.topic2.metacode.icon, :class => 'icon', :size => '50x50' %> +

<%= link_to synapse.topic2.name, topic_url(synapse.topic2) %>

+
+<% end %> \ No newline at end of file diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 8b37c0be..4e18c98b 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -17,17 +17,33 @@
--> -

Recently Created Topics

+
+ +

Recently Created Topics <%= link_to "see all", user_topics_path(@user)%>

+
<% @topics.each do |topic| %> <%= render topic %> <% end %> +
-

Recently Created Maps

+

Recently Created Synapses <%= link_to "see all", user_synapses_path(@user)%>

+
+<% @synapses.each do |synapse| %> + <%= render synapse %> +<% end %> +
+
+ +

Recently Created Maps <%= link_to "see all", user_maps_path(@user)%>

+
<% @maps.each do |map| %> <%= render map %> <% end %> -
+
+
+ +

Viewing Mapper: <%= @user.name %> diff --git a/config/routes.rb b/config/routes.rb index 69255032..173c127c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,6 @@ ISSAD::Application.routes.draw do - root to: 'main#console', via: :get + root to: 'main#home', via: :get match 'console', to: 'main#console', via: :get, as: :console