mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
Roadmap now shows requested post statuses in order
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
class StaticPagesController < ApplicationController
|
class StaticPagesController < ApplicationController
|
||||||
def roadmap
|
def roadmap
|
||||||
@post_statuses = PostStatus.select(:id, :name, :color)
|
@post_statuses = PostStatus
|
||||||
|
.select(:id, :name, :color)
|
||||||
|
.where(show_in_roadmap: true)
|
||||||
|
.order(order: :asc)
|
||||||
|
|
||||||
@posts = Post
|
@posts = Post
|
||||||
.select(:id, :title, :board_id, :post_status_id, :user_id, :created_at)
|
.select(:id, :title, :board_id, :post_status_id, :user_id, :created_at)
|
||||||
|
|||||||
Reference in New Issue
Block a user