Milford High School (Milford District). Add tabs to top navigation [#179727241]pull/1/head
parent
5595af15b6
commit
a406205e20
@ -0,0 +1,12 @@
|
|||||||
|
.nav-tabs {
|
||||||
|
margin-bottom: -1rem;
|
||||||
|
border-bottom: 1px solid transparent;
|
||||||
|
.nav-link {
|
||||||
|
color: white;
|
||||||
|
border-top-left-radius: 15px;
|
||||||
|
border-top-right-radius: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.nav-item {
|
||||||
|
margin-right: 1px;
|
||||||
|
}
|
||||||
@ -1,3 +1,7 @@
|
|||||||
class SqmCategory < ActiveRecord::Base
|
class SqmCategory < ActiveRecord::Base
|
||||||
|
include FriendlyId
|
||||||
|
|
||||||
|
friendly_id :name, use: [:slugged]
|
||||||
|
|
||||||
has_many :subcategories
|
has_many :subcategories
|
||||||
end
|
end
|
||||||
|
|||||||
@ -0,0 +1,6 @@
|
|||||||
|
class AddSlugToSqmCategory < ActiveRecord::Migration[5.1]
|
||||||
|
def change
|
||||||
|
add_column :sqm_categories, :slug, :string
|
||||||
|
add_index :sqm_categories, :slug, unique: true
|
||||||
|
end
|
||||||
|
end
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
class AddSortIndexToSqmCategory < ActiveRecord::Migration[5.1]
|
||||||
|
def change
|
||||||
|
add_column :sqm_categories, :sort_index, :integer
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
Reference in new issue