About expansion added
This commit is contained in:
Родитель
bc9065ee96
Коммит
29a5cd2571
|
@ -3,6 +3,26 @@
|
|||
<ul>
|
||||
<li>
|
||||
<%= link_to "About", "/about", sidebar_link_options("about") %>
|
||||
<ul class="<%= @section == "trademark" ? "expanded" : ""%>">
|
||||
<li>
|
||||
<%= link_to "Branching and Merging", "/about", sidebar_link_options("branching-and-merging") %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to "Small and Fast", "/about/small-and-fast", sidebar_link_options("small-and-fast") %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to "Distributed", "/about/distributed", sidebar_link_options("distributed") %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to "Data Assurance", "/doc/info-assurance", sidebar_link_options("info-assurance") %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to "Staging Area", "/doc/staging-area", sidebar_link_options("staging-area") %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to "Free and Open Source", "/doc/free-and-open-source", sidebar_link_options("free-and-open-source") %>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to "Documentation", "/doc", sidebar_link_options("documentation") %>
|
||||
|
@ -44,4 +64,4 @@
|
|||
<%= yield :sidebar %>
|
||||
<% end %>
|
||||
</nav>
|
||||
</aside>
|
||||
</aside>
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
production:
|
||||
adapter: sqlite3
|
||||
database: db/production.sqlite3
|
||||
pool: 5
|
||||
timeout: 5000
|
||||
|
||||
development:
|
||||
adapter: sqlite3
|
||||
database: db/development.sqlite3
|
||||
pool: 5
|
||||
timeout: 5000
|
||||
|
||||
test:
|
||||
adapter: sqlite3
|
||||
database: db/test.sqlite3
|
||||
pool: 5
|
||||
timeout: 5000
|
70
db/schema.rb
70
db/schema.rb
|
@ -13,14 +13,11 @@
|
|||
|
||||
ActiveRecord::Schema.define(version: 20141027114732) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
create_table "books", force: :cascade do |t|
|
||||
t.string "code", limit: 255
|
||||
t.string "code"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.integer "edition", default: 1
|
||||
t.integer "edition", default: 1
|
||||
t.string "ebook_pdf"
|
||||
t.string "ebook_epub"
|
||||
t.string "ebook_mobi"
|
||||
|
@ -30,28 +27,28 @@ ActiveRecord::Schema.define(version: 20141027114732) do
|
|||
t.string "language"
|
||||
end
|
||||
|
||||
add_index "books", ["code"], name: "index_books_on_code", using: :btree
|
||||
add_index "books", ["code"], name: "index_books_on_code"
|
||||
|
||||
create_table "chapters", force: :cascade do |t|
|
||||
t.string "title", limit: 255
|
||||
t.string "title"
|
||||
t.integer "book_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.integer "number"
|
||||
t.string "sha", limit: 255
|
||||
t.string "chapter_type", default: "chapter"
|
||||
t.string "sha"
|
||||
t.string "chapter_type", default: "chapter"
|
||||
t.string "chapter_number"
|
||||
end
|
||||
|
||||
add_index "chapters", ["book_id"], name: "index_chapters_on_book_id", using: :btree
|
||||
add_index "chapters", ["book_id"], name: "index_chapters_on_book_id"
|
||||
|
||||
create_table "doc_files", force: :cascade do |t|
|
||||
t.string "name", limit: 255
|
||||
t.string "name"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
add_index "doc_files", ["name"], name: "index_doc_files_on_name", using: :btree
|
||||
add_index "doc_files", ["name"], name: "index_doc_files_on_name"
|
||||
|
||||
create_table "doc_versions", force: :cascade do |t|
|
||||
t.integer "version_id"
|
||||
|
@ -62,19 +59,19 @@ ActiveRecord::Schema.define(version: 20141027114732) do
|
|||
end
|
||||
|
||||
create_table "docs", force: :cascade do |t|
|
||||
t.string "blob_sha", limit: 255
|
||||
t.string "blob_sha"
|
||||
t.text "plain"
|
||||
t.text "html"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
add_index "docs", ["blob_sha"], name: "index_docs_on_blob_sha", using: :btree
|
||||
add_index "docs", ["blob_sha"], name: "index_docs_on_blob_sha"
|
||||
|
||||
create_table "downloads", force: :cascade do |t|
|
||||
t.string "url", limit: 255
|
||||
t.string "filename", limit: 255
|
||||
t.string "platform", limit: 255
|
||||
t.string "url"
|
||||
t.string "filename"
|
||||
t.string "platform"
|
||||
t.integer "version_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
|
@ -82,53 +79,42 @@ ActiveRecord::Schema.define(version: 20141027114732) do
|
|||
end
|
||||
|
||||
create_table "related_items", force: :cascade do |t|
|
||||
t.string "name", limit: 255
|
||||
t.string "content_type", limit: 255
|
||||
t.string "content_url", limit: 255
|
||||
t.string "related_type", limit: 255
|
||||
t.string "related_id", limit: 255
|
||||
t.string "name"
|
||||
t.string "content_type"
|
||||
t.string "content_url"
|
||||
t.string "related_type"
|
||||
t.string "related_id"
|
||||
t.integer "score"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "sections", force: :cascade do |t|
|
||||
t.string "title", limit: 255
|
||||
t.string "slug", limit: 255
|
||||
t.string "title"
|
||||
t.string "slug"
|
||||
t.text "plain"
|
||||
t.text "html"
|
||||
t.integer "chapter_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "source_url", limit: 255
|
||||
t.string "source_url"
|
||||
t.integer "number"
|
||||
end
|
||||
|
||||
add_index "sections", ["chapter_id"], name: "index_sections_on_chapter_id", using: :btree
|
||||
add_index "sections", ["slug"], name: "index_sections_on_slug", using: :btree
|
||||
|
||||
create_table "users", force: :cascade do |t|
|
||||
t.string "screen_name", limit: 255
|
||||
t.string "github_id", limit: 255
|
||||
t.string "remember_token", limit: 255
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
add_index "users", ["github_id"], name: "index_users_on_github_id", using: :btree
|
||||
add_index "users", ["remember_token"], name: "index_users_on_remember_token", using: :btree
|
||||
add_index "sections", ["chapter_id"], name: "index_sections_on_chapter_id"
|
||||
add_index "sections", ["slug"], name: "index_sections_on_slug"
|
||||
|
||||
create_table "versions", force: :cascade do |t|
|
||||
t.string "name", limit: 255
|
||||
t.string "commit_sha", limit: 255
|
||||
t.string "tree_sha", limit: 255
|
||||
t.string "name"
|
||||
t.string "commit_sha"
|
||||
t.string "tree_sha"
|
||||
t.datetime "committed"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.float "vorder"
|
||||
end
|
||||
|
||||
add_index "versions", ["name"], name: "index_versions_on_name", using: :btree
|
||||
add_index "versions", ["name"], name: "index_versions_on_name"
|
||||
|
||||
create_table "xrefs", force: :cascade do |t|
|
||||
t.integer "section_id"
|
||||
|
|
Загрузка…
Ссылка в новой задаче