Skip to content
Snippets Groups Projects
Commit 51a176bd authored by Arnaud Levy's avatar Arnaud Levy
Browse files

websites with repo and token

parent b442c757
No related branches found
No related tags found
No related merge requests found
Showing
with 42 additions and 9 deletions
......@@ -51,6 +51,6 @@ class Admin::Communication::WebsitesController < Admin::Communication::Applicati
end
def website_params
params.require(:communication_website).permit(:name, :domain)
params.require(:communication_website).permit(:name, :domain, :repository, :access_token)
end
end
......@@ -2,6 +2,7 @@ class Admin::Research::Journal::VolumesController < Admin::Research::Journal::Ap
load_and_authorize_resource class: Research::Journal::Volume
def index
@volumes = @volumes.ordered
breadcrumb
end
......@@ -54,6 +55,6 @@ class Admin::Research::Journal::VolumesController < Admin::Research::Journal::Ap
end
def volume_params
params.require(:research_journal_volume).permit(:title, :number, :published_at)
params.require(:research_journal_volume).permit(:title, :number, :published_at, :description)
end
end
......@@ -3,8 +3,10 @@
# Table name: communication_websites
#
# id :uuid not null, primary key
# access_token :string
# domain :string
# name :string
# repository :string
# created_at :datetime not null
# updated_at :datetime not null
# university_id :uuid not null
......
......@@ -3,6 +3,7 @@
# Table name: research_journal_volumes
#
# id :uuid not null, primary key
# description :text
# number :integer
# published_at :datetime
# title :string
......@@ -28,6 +29,8 @@ class Research::Journal::Volume < ApplicationRecord
after_save :publish_to_github
scope :ordered, -> { order(number: :desc, published_at: :desc) }
def to_s
"##{ number } #{ title }"
end
......
<%= simple_form_for [:admin, website] do |f| %>
<div class="row">
<div class="col-md-6">
<div class="col-md-4">
<%= f.input :name %>
</div>
<div class="col-md-6">
<div class="col-md-4">
<%= f.input :domain %>
<%= f.input :repository %>
<%= f.input :access_token %>
</div>
<div class="col-md-4">
</div>
</div>
<% content_for :buttons do %>
......
<%= simple_form_for [:admin, volume] do |f| %>
<%= f.input :title %>
<%= f.input :number %>
<%= f.input :published_at, html5: true %>
<div class="row">
<div class="col-md-4">
<%= f.input :title %>
<%= f.input :number %>
<%= f.input :published_at, html5: true %>
</div>
<div class="col-md-8">
<%= f.input :description, input_html: { rows: 5 } %>
</div>
</div>
<% content_for :buttons do %>
<%= submit f %>
<% end %>
......
......@@ -21,4 +21,4 @@ articles:
- <%= article.id %>
<% end %>
---
The internal dynamics of political parties were a central concern for the founders of both organization theory and political sociology, yet contemporary research tends to neglect the importance and value of studying these electoral machines from a truly organizational point of view. The present issue seeks to remedy this shortcoming by allowing curious and creative scholars to reimagine what it might mean for organization scholars and activists alike to engage actively with political parties. While some contributions reflect on the idiosyncrasies of political parties in general, most articles and notes cultivate a so-called immersive approach to the study of party organization, in which the researcher ventures beyond the glossy surface of party propaganda in order to experience and analyze party organizing in practice rather than on paper. These ambitions yield fascinating accounts of parties such as Podemos, En Marche, DiEM25, Movimento 5 Stelle, the British Labour Party, as well as the German and Icelandic Pirate Party.
<%= @volume.description %>
class AddRepoToWebsites < ActiveRecord::Migration[6.1]
def change
add_column :communication_websites, :access_token, :string
add_column :communication_websites, :repository, :string
end
end
class AddDescriptionToResearchJournalVolumes < ActiveRecord::Migration[6.1]
def change
add_column :research_journal_volumes, :description, :text
end
end
......@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_08_31_122745) do
ActiveRecord::Schema.define(version: 2021_09_06_074132) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
......@@ -64,6 +64,8 @@ ActiveRecord::Schema.define(version: 2021_08_31_122745) do
t.string "domain"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.string "access_token"
t.string "repository"
t.index ["university_id"], name: "index_communication_websites_on_university_id"
end
......@@ -110,6 +112,7 @@ ActiveRecord::Schema.define(version: 2021_08_31_122745) do
t.datetime "published_at"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.text "description"
t.index ["research_journal_id"], name: "index_research_journal_volumes_on_research_journal_id"
t.index ["university_id"], name: "index_research_journal_volumes_on_university_id"
end
......
......@@ -3,6 +3,7 @@
# Table name: research_journal_volumes
#
# id :uuid not null, primary key
# description :text
# number :integer
# published_at :datetime
# title :string
......
......@@ -3,6 +3,7 @@
# Table name: research_journal_volumes
#
# id :uuid not null, primary key
# description :text
# number :integer
# published_at :datetime
# title :string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment