public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Michael Hartl (author)
Sun Apr 20 17:03:47 -0700 2008
commit  a59fce84d6dab2e40dd2c19ee8913ada6451b781
tree    b2a558c3f2c51c3d7effe396b430c34e8f7d75e1
parent  401743802d2901c0d32c3674e4dbfbd44caeff49
insoshi / app / views / layouts / application.html.erb
100644 383 lines (338 sloc) 20.234 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Insoshi - Social Software: Home</title>
    <%= stylesheet_link_tag "default" %>
  </head>
  <body class="home">
    <div id="header-wrap">
      <div id="header">
        <h1>
          <a href="index.html" title="Return to Insoshi homepage">
            <img src="/images/logo-insoshi.png" alt="Insoshi - Social Software" />
          </a>
        </h1>
        <ul id="nav">
          <li class="n-home active"><a href="index.html">Home</a></li>
          <li class="n-profile"><a href="profile.html">Profile</a></li>
          <li class="n-contacts"><a href="contacts.html">Contacts</a></li>
          <li class="n-messages"><a href="messages.html">Messages</a></li>
          <li class="n-blog"><a href="blog.html">Blog</a></li>
          <li class="n-people"><a href="people.html">People</a></li>
          <li class="n-forum"><a href="forum.html">Forum</a></li>
        </ul>
        <p class="welcome">Welcome, Pete Lambert (<a href="signin.html">Sign out</a>)</p>
      </div>
    </div>
    <div id="wrap">
      <div id="content">
        <div class="col1">
 
 
  <%= render :partial => 'feed' %>
 
 
          <ul class="list activity full">
            <li>
              <div class="profile-image">
                <img src="/images/profile-images/m/simon-hunt.jpg" alt="Simon Hunt" />
                <img src="/images/icons/blog.gif" alt="Blog post" />
              </div>
              <p><a href="profile.html">Simon Hunt</a> posted a new item on his <a href="blog.html">blog</a> with the title &#8220;This is how it is when things are going well</a>&#8221;</p>
 
              <p class="meta published">6 minutes ago</p>
            </li>
            <li>
              <div class="profile-image">
                <img src="/images/profile-images/m/default-profile-image.png" alt="Simon Hunt" />
                <img src="/images/icons/comment.gif" alt="Blog post" />
              </div>
              <p><a href="profile.html">Simon Hunt</a> posted a new item on his <a href="blog.html">blog</a> with the title &#8220;This is how it is when things are going well</a>&#8221;</p>
 
              <p class="meta published">6 minutes ago</p>
            </li>
            <li>
              <div class="profile-image">
                <img src="/images/profile-images/m/simon-hunt.jpg" alt="Simon Hunt" />
                <img src="/images/icons/blog.gif" alt="Blog post" />
              </div>
              <p><a href="profile.html">Simon Hunt</a> posted a new item on his <a href="blog.html">blog</a> with the title &#8220;This is how it is when things are going well</a>&#8221;</p>
 
              <p class="meta published">6 minutes ago</p>
            </li>
            <li>
              <div class="profile-image">
                <img src="/images/profile-images/m/simon-hunt.jpg" alt="Simon Hunt" />
                <img src="/images/icons/comment.gif" alt="Blog post" />
              </div>
              <p><a href="profile.html">Simon Hunt</a> posted a comment on the topic <a href="blog.html">blog</a> with the title &#8220;This is how it is when things are going well</a>&#8221;</p>
 
              <p class="meta published">6 minutes ago</p>
            </li>
            <li>
              <div class="profile-image">
                <img src="/images/profile-images/m/default-profile-image.png" alt="Simon Hunt" />
                <img src="/images/icons/blog.gif" alt="Blog post" />
              </div>
              <p><a href="profile.html">Simon Hunt</a> posted a new item on his <a href="blog.html">blog</a> with the title &#8220;This is how it is when things are going well</a>&#8221;</p>
 
              <p class="meta published">6 minutes ago</p>
            </li>
            <li>
              <div class="profile-image">
                <img src="/images/profile-images/m/simon-hunt.jpg" alt="Simon Hunt" />
                <img src="/images/icons/comment.gif" alt="Blog post" />
              </div>
              <p><a href="profile.html">Simon Hunt</a> posted a comment on the topic <a href="blog.html">blog</a> with the title &#8220;This is how it is when things are going well</a>&#8221;</p>
 
              <p class="meta published">6 minutes ago</p>
            </li>
            <li>
              <div class="profile-image">
                <img src="/images/profile-images/m/simon-hunt.jpg" alt="Simon Hunt" />
                <img src="/images/icons/blog.gif" alt="Blog post" />
              </div>
              <p><a href="profile.html">Simon Hunt</a> posted a new item on his <a href="blog.html">blog</a> with the title &#8220;This is how it is when things are going well</a>&#8221;</p>
 
              <p class="meta published">6 minutes ago</p>
            </li>
            <li>
              <div class="profile-image">
                <img src="/images/profile-images/m/default-profile-image.png" alt="Simon Hunt" />
                <img src="/images/icons/blog.gif" alt="Blog post" />
              </div>
              <p><a href="profile.html">Simon Hunt</a> posted a new item on his <a href="blog.html">blog</a> with the title &#8220;This is how it is when things are going well</a>&#8221;</p>
 
              <p class="meta published">6 minutes ago</p>
            </li>
            <li>
              <div class="profile-image">
                <img src="/images/profile-images/m/simon-hunt.jpg" alt="Simon Hunt" />
                <img src="/images/icons/blog.gif" alt="Blog post" />
              </div>
              <p><a href="profile.html">Simon Hunt</a> posted a new item on his <a href="blog.html">blog</a> with the title &#8220;This is how it is when things are going well</a>&#8221;</p>
 
              <p class="meta published">6 minutes ago</p>
            </li>
            <li>
              <div class="profile-image">
                <img src="/images/profile-images/m/simon-hunt.jpg" alt="Simon Hunt" />
                <img src="/images/icons/blog.gif" alt="Blog post" />
              </div>
              <p><a href="profile.html">Simon Hunt</a> posted a new item on his <a href="blog.html">blog</a> with the title &#8220;This is how it is when things are going well</a>&#8221;</p>
 
              <p class="meta published">6 minutes ago</p>
            </li>
          </ul>
          <h2>Network Members</h2>
          <ul class="grid contacts medium">
            <li class="vcard contact">
              <a href="profile.html" class="url">
                <img src="/images/profile-images/s/george-palmer.jpg" alt="George Palmer" class="photo" />
 
                <span class="fn">George Palmer</span>
              </a>
            </li>
            <li class="vcard contact">
              <a href="profile.html" class="url">
                <img src="/images/profile-images/s/george-palmer.jpg" alt="George Palmer" class="photo" />
                <span class="fn">George Palmer</span>
              </a>
 
            </li>
            <li class="vcard contact">
              <a href="profile.html" class="url">
                <img src="/images/profile-images/s/default-profile-image.png" alt="Simon Hunt" class="photo" />
                <span class="fn">George Palmer</span>
              </a>
            </li>
            <li class="vcard contact">
 
              <a href="profile.html" class="url">
                <img src="/images/profile-images/s/george-palmer.jpg" alt="George Palmer" class="photo" />
                <span class="fn">George Palmer</span>
              </a>
            </li>
            <li class="vcard contact">
              <a href="profile.html" class="url">
                <img src="/images/profile-images/s/george-palmer.jpg" alt="George Palmer" class="photo" />
 
                <span class="fn">George Palmer</span>
              </a>
            </li>
            <li class="vcard contact">
              <a href="profile.html" class="url">
                <img src="/images/profile-images/s/default-profile-image.png" alt="Simon Hunt" class="photo" />
                <span class="fn">George Palmer</span>
              </a>
 
            </li>
            <li class="vcard contact">
              <a href="profile.html" class="url">
                <img src="/images/profile-images/s/george-palmer.jpg" alt="George Palmer" class="photo" />
                <span class="fn">George Palmer</span>
              </a>
            </li>
            <li class="vcard contact">
 
              <a href="profile.html" class="url">
                <img src="/images/profile-images/s/george-palmer.jpg" alt="George Palmer" class="photo" />
                <span class="fn">George Palmer</span>
              </a>
            </li>
            <li class="vcard contact">
              <a href="profile.html" class="url">
                <img src="/images/profile-images/s/george-palmer.jpg" alt="George Palmer" class="photo" />
 
                <span class="fn">George Palmer</span>
              </a>
            </li>
            <li class="more"><a href="people.html">See all network members...</a></li>
          </ul>
        </div>
        <div class="col2">
          <h2>Requested Connections</h2>
 
          <ul class="grid contacts medium">
            <li class="vcard contact">
              <a href="profile.html" class="url">
                <img src="/images/profile-images/s/george-palmer.jpg" alt="George Palmer" class="photo" />
                <span class="fn">George Palmer</span>
              </a>
            </li>
            <li class="vcard contact">
 
              <a href="profile.html" class="url">
                <img src="/images/profile-images/s/george-palmer.jpg" alt="George Palmer" class="photo" />
                <span class="fn">George Palmer</span>
              </a>
            </li>
            <li class="vcard contact">
              <a href="profile.html" class="url">
                <img src="/images/profile-images/s/default-profile-image.png" alt="Simon Hunt" class="photo" />
 
                <span class="fn">George Palmer</span>
              </a>
            </li>
            <li class="vcard contact">
              <a href="profile.html" class="url">
                <img src="/images/profile-images/s/default-profile-image.png" alt="Simon Hunt" class="photo" />
                <span class="fn">George Palmer</span>
              </a>
 
            </li>
            <li class="vcard contact">
              <a href="profile.html" class="url">
                <img src="/images/profile-images/s/george-palmer.jpg" alt="George Palmer" class="photo" />
                <span class="fn">George Palmer</span>
              </a>
            </li>
          </ul>
 
          
          <h2>Messages</h2>
          <ul class="list messages small">
            <li>
              <div class="profile-image">
                <img src="/images/profile-images/s/leanne-scott.jpg" alt="Leanne Scott" />
              </div>
              <p><span class="field">From:</span><a href="profile.html">Simon Hunt</a></p>
 
              <p class="meta published">about 1 hour ago</p>
              <p title="Subject"><a href="message.html">I had a thought about the project</a></p>
            </li>
            <li>
              <div class="profile-image">
                <img src="/images/profile-images/s/default-profile-image.png" alt="Simon Hunt" class="photo" />
              </div>
              <p><span class="field">From:</span><a href="profile.html">Simon Hunt</a></p>
 
              <p class="meta published">about 1 hour ago</p>
              <p title="Subject"><a href="message.html">I had a thought about the project</a></p>
            </li>
            <li>
              <div class="profile-image">
                <img src="/images/profile-images/s/leanne-scott.jpg" alt="Leanne Scott" />
              </div>
              <p><span class="field">From:</span><a href="profile.html">Simon Hunt</a></p>
 
              <p class="meta published">about 1 hour ago</p>
              <p title="Subject"><a href="message.html">I had a thought about the project</a></p>
            </li>
            <li class="more"><a href="messages.html">Go to my inbox...</a></li>
          </ul>
          
          <h2>Contacts</h2>
          <ul class="grid contacts small">
 
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/default-profile-image.png" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/default-profile-image.png" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/default-profile-image.png" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
 
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
            <li class="vcard"><a href="profile.html" title="Garth Crooks" class="url"><img src="/images/profile-images/s/garth-crooks.jpg" title="Garth Crooks" alt="Garth Crooks" class="photo fn" /></a></li>
 
            <li class="more"><a href="contacts.html">All my contacts...</a></li>
          </ul>
        </div>
        <div id="footer">
          <p id="footer-nav">
            <a href="index.html">Home</a> | <a href="profile.html">Profile</a> | <a href="messages.html">Messages</a> | <a href="blog.html">Blog</a> | <a href="people.html">People</a> | <a href="forum.html">Forum</a>
 
          </p>
          <p>Powered by <a href="index.html">Inoshi</a></p>
        </div>
      </div>
    </div>
  </body>
    
    
    
    
    
    
    
    <div id="main" class="container">
      <%- column_div :id => "logo", :order => "first last",
                     :width => FULL do -%>
        <h1><%= link_to "insoshi", '/' %></h1>
        <h2>insoshi social software</h2>
      <%- end -%>
      <%- column_div :type => :full do -%>
        <div id="navcontainer">
          <ul id="navlist">
          <%- menu.each do |link| -%>
            <li><%= menu_link_to link %></li>
          <%- end -%>
          </ul>
        </div>
      <%- end -%>
      <%- column_div :type => :full do -%>
        <div class="column first span-13 append-1">
        <%- if flash.empty? -%>
          &nbsp;
        <%- else -%>
          <% flash.each do |key, msg| %>
            <%= content_tag :div, msg, :class => "flash #{key}" %>
          <% end %>
        <%- end -%>
        </div>
        <%- column_div :type => :secondary do -%>
          <div style="font-size: 90%; margin: 0 0 0.5em 0;">
            <%- if logged_in? -%>
              Welcome, <%= current_person.name %>!
              (<%= link_to "Sign out", logout_path %>)
              <%- if current_person.admin? -%>
                <br />
                <%- if admin_view? -%>
                  <%= link_to("Standard view", home_path) %>
                <%- else -%>
                  <%= link_to("Admin view", admin_home_path) %>
                <%- end -%>
              <%- end -%>
            <%- else -%>
              <%= link_to "Sign in", login_path %> or
              <%= link_to "Sign up", signup_path %>
              <br />
              <%= link_to "I forgot my password",
                           new_password_reminder_path %>
            <%- end -%>
          </div>
        <%- end -%>
      <%- end -%>
      <%- column_div :type => :full do -%>
        <%= yield %>
      <%- end -%>
    <%- column_div :type => :full, :id => "footer" do -%>
      Powered by <%= link_to "Insoshi", "http://insoshi.com/" %>
      <%- unless test? -%>
        <%# A tracker to tell us about the activity of Insoshi installs %>
        <img src="http://stats.insoshi.com/<%= @tracker_id %>?env=<%= @env %>"
             alt="" width="1" height="1" border="0" />
      <%- end -%>
 
    <%- end -%>
 
    </div>
    <%- if development? -%>
    <div>
      <%= link_to 'Show Grid', '#',
                  :onclick => "$('main').className+=' with-grid'; "%>
      <%= render :partial => 'shared/debug' %>
    </div>
    <%- end -%>
  </body>
</html>