github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

emk / mephisto forked from technoweenie/mephisto

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 169
    • 37
  • Source
  • Commits
  • Network (37)
  • Issues (0)
  • Downloads (3)
  • Wiki (3)
  • Graphs
  • Tree: 7a20455

click here to add a description

click here to add a homepage

  • Branches (7)
    • cucumber
    • francois-multiengine
    • master
    • new-plugins
    • sitemaps
    • v0.8-stable
    • v0.8.0-original
  • Tags (3)
    • v0.8.2
    • v0.8.1
    • rails-2.0.5
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

User-friendly blogging with multisite support and asset managment — Read more

  cancel

http://mephistoblog.com/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Security: Escape more strings 
emk (author)
Thu Dec 11 16:05:37 -0800 2008
commit  7a20455fab59441d15e261172aa9fac109eb3893
tree    eb43abe7ea4ced62e2f3cdc99532039644227102
parent  a83309dbc833ce1ef255ac65275ba498115d1040
mephisto / app / views / admin / articles / _shared_options.rhtml app/views/admin/articles/_shared_options.rhtml
100644 83 lines (78 sloc) 3.572 kb
edit raw blame history
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
<div class="sgroup">
  <h3>Publish in these sections</h3>
  <ul class="slist">
    <% @sections.each do |section| %>
      <li>
        <%= check_box_tag 'article[section_ids][]', section.id, @article.has_section?(section),
              :id => "article_section_ids_#{section.id}" %>
        <label for="article_section_ids_<%= section.id %>"><%=h section.name %></label>
      </li>
    <% end %>
  </ul>
</div>
 
<div class="sgroup" id="filetabs">
  <ul class="stabs">
    <li id="tab-latest"><a href="#latest-files" class="selected" title="Latest files uploaded">Latest</a></li>
    <li id="tab-attached"><a href="#attached-files" title="Attached Assets">Attached</a></li>
    <li id="tab-search"><a href="#search-files" title="Search for files">Search</a></li>
    <li id="tab-files"><a href="#upload-files" title="Upload new files">Upload</a></li>
    <li id="tab-bucket"><a href="#bucket" title="Upload new files">Bucket</a></li>
  </ul>
  
  <div id="tabpanels">
    <div class="tabpanel" id="latest-files">
      <ul id="latest-assets" class="asset-list">
        <%= render :partial => "admin/assets/widget", :collection => @assets, :locals => { :prefix => 'latest' } %>
      </ul>
    </div>
    <div class="tabpanel" id="attached-files" style="display:none;">
      <ul id="attached-assets" class="asset-list">
        <%= render :partial => "admin/assets/widget", :collection => @article.assets, :locals => { :prefix => 'attached' } %>
      </ul>
    </div>
    <div class="tabpanel" id="search-files" style="display:none;">
      <label for="q" style="font-weight:bold;padding: 5px 0;">
        Search by tag or title
        <img id="spinner" src="/images/mephisto/spinner.gif" alt="spinner" style="display:none;vertical-align: middle" />
      </label>
      <input class="searchbox" type="text" size="30" name="q" id="search-files-q" />
      <input type="button" value="Search" onclick="TinyTab.callbacks['search-files']($F('search-files-q'))" />
      <ul id="search-assets" class="asset-list"></ul>
      <% javascript_tag do -%>
        // Don't save the entire article when the user presses enter.
        Event.observe('search-files-q', 'keypress', function (event) {
          if (event.keyCode == Event.KEY_RETURN) {
            Event.stop(event);
            TinyTab.callbacks['search-files']($F('search-files-q'))
          }
        });
      <% end -%>
    </div>
    <div class="tabpanel" id="upload-files" style="display:none;">
      <p>
        <strong>1.</strong>
        <%= file_field_tag 'asset[uploaded_data]', :size => 15, :id => 'asset_uploaded_data' %>
      </p>
      <p><strong>2.</strong> <input type="button" value="Upload" onclick="Asset.upload('article-form');" /></p>
    </div>
    <div class="tabpanel" id="bucket" style="display:none;">
      <ul id="bucket-assets" class="asset-list">
        <%= render :partial => "admin/assets/widget", :collection => @bucket_assets, :locals => { :prefix => 'bucket' } %>
      </ul>
    </div>
  </div>
  
</div>
 
<div class="sgroup">
  <h3>Optional settings</h3>
  <dl class="sform">
      <dt><label for="article_filter">Format with: </label></dt>
      <dd>
        <select name="article[filter]" id="article_filter">
        <%= options_for_select(filter_options, @article.filter) %>
      </select>
    </dd>
    <dt><label for="article_comment_age">Comments</label></dt>
    <dd><%= form.select :comment_age, comment_expiration_options %></dd>
    <dt><label for="article_permalink">Permanent link:</label></dt>
    <dd><%= form.text_field :permalink %></dd>
  </dl>
</div>
 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server