about summary refs log tree commit diff stats
path: root/data/maps/the_bearer/rooms/Q2 Room.txtpb
Commit message (Expand)AuthorAgeFilesLines
* Changed how door location names are formattedStar Rauchenberger13 days1-1/+0
* Converted to proto2Star Rauchenberger2025-08-121-1/+1
* Added the_butterflyStar Rauchenberger2025-08-091-1/+5
* Added the_bearerStar Rauchenberger2025-08-081-0/+3
ontroller.rb?id=ffcc44d1a73ae1191e835fa625f2f8a7e3e25bda'>ffcc44d ^
2748298 ^


5f860c6 ^



ffcc44d ^






49b11f2 ^

d48adb7 ^

e11dede ^
745b9e5 ^
6580863 ^


745b9e5 ^











49b11f2 ^

2a7a19c ^















































49b11f2 ^
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
84
85
86
87
88
89
90
91
92

                                

                                             
             
                                                                                                               


                        



                                                                   






                          

                                            

                                                   
                                                             
 


                      











                                                                                   

     















































                                                                                                                      
   
require 'redcarpet/render_strip'

class BlogsController < ApplicationController

  def summary
    @blogs = Blog.where(published: true).order(published_at: :desc).paginate(page: params[:page], per_page: 10)
    if not params[:page]
      @main_page = true
    end
  end

  def index
    @blogs = Blog.where(published: true).order(published_at: :desc)

    respond_to do |format|
      format.html
      format.atom
    end
  end

  def show
    @blog = Blog.find_by_slug(params[:slug])

    raise ActiveRecord::RecordNotFound unless @blog
    raise ActiveRecord::RecordNotFound unless @blog.published

    @prev = @blog.prev
    @next = @blog.next

    body = Redcarpet::Markdown.new(Redcarpet::Render::StripDown).render(@blog.body)

    set_meta_tags(og: {
      title: @blog.title,
      type: "article",
      description: (body.length <= 300 ? body : body[0..299]),
      url: blog_url(@blog, host: "www.fourisland.com"),
      article: {
        published_time: @blog.published_at.iso8601,
        modified_time: @blog.updated_at.iso8601
      }
    })
  end

  def upvote
    @blog = Blog.find_by_slug(params[:slug])

    raise ActiveRecord::RecordNotFound unless @blog
    raise ActiveRecord::RecordNotFound unless @blog.published

    respond_to do |format|
      if @blog.upvote! request.remote_ip
        format.html do
          flash[:notice] = "You have upvoted the blog post \"#{@blog.title}\"."
          redirect_to @blog
        end
        format.js { render "voted" }
        format.xml { head :ok }
      else
        format.html do
          flash[:notice] = "You have already voted on the blog post \"#{@blog.title}\"."
          redirect_to @blog
        end
        format.xml { render :xml => { :error => "Someone from your IP address has already voted on this blog post."} }
      end
    end
  end

  def downvote
    @blog = Blog.find_by_slug(params[:slug])

    raise ActiveRecord::RecordNotFound unless @blog
    raise ActiveRecord::RecordNotFound unless @blog.published

    respond_to do |format|
      if @blog.downvote! request.remote_ip
        format.html do
          flash[:notice] = "You have downvoted the blog post \"#{@blog.title}\"."
          redirect_to @blog
        end
        format.js { render "voted" }
        format.xml { head :ok }
      else
        format.html do
          flash[:notice] = "You have already voted on the blog post \"#{@blog.title}\"."
          redirect_to @blog
        end
        format.xml { render :xml => { :error => "Someone from your IP address has already voted on this blog post."} }
      end
    end
  end

end