lib/rmake-notation.rb in rmake-notation-0.0.10 vs lib/rmake-notation.rb in rmake-notation-0.0.11
- old
+ new
@@ -235,30 +235,9 @@
text = parsed_block[2] ? parsed_block[2..parsed_block.length-1] : nil
text = text ? text.join(" ") : "ゲーム[ID:#{id}]"
url = "http://#{DOMAIN}/games/#{id}/play"
result = "<a href=\"#{url}\" title=\"#{text}\">#{text}</a>"
- when "open_game_form"
- id = parsed_block[1]
- text = parsed_block[2] ? parsed_block[2] : nil
- submit_label = parsed_block[3] ? parsed_block[3..parsed_block.length-1] : nil
- if text.blank?
- text = "パラメータ"
- end
-
- if submit_label.blank?
- submit_label = "ゲームを開く"
- end
- url = "http://#{DOMAIN}/games/#{id}/play"
- result = <<-EOS
-<form method="get" action="#{url}">
- #{text}
- <input type="text" name="gd" maxlength="200" size=20 />
- <input type="submit" value="#{submit_label}" />
-</form>
-EOS
-
-
when "item"
id = parsed_block[1]
text = parsed_block[2] ? parsed_block[2..parsed_block.length-1] : nil
text = text ? text.join(" ") : "素材/ゲームデータ[ID:#{id}]"
url = "http://#{DOMAIN}/published_items/#{id}"