[logaling-commit] logaling/logaling-server [master] Add explore page

Back to archive index

SUZUKI Miho null+****@clear*****
Wed Nov 28 12:34:10 JST 2012


SUZUKI Miho	2012-11-28 12:34:10 +0900 (Wed, 28 Nov 2012)

  New Revision: 08913e0b695067003bd05e43bded2d655ab7fe66
  https://github.com/logaling/logaling-server/commit/08913e0b695067003bd05e43bded2d655ab7fe66

  Merged cb4df7b: Merge pull request #44 from logaling/add-explore-page

  Log:
    Add explore page

  Added files:
    app/views/pages/explore.html.haml
  Modified files:
    app/controllers/pages_controller.rb
    config/routes.rb

  Modified: app/controllers/pages_controller.rb (+5 -0)
===================================================================
--- app/controllers/pages_controller.rb    2012-11-27 19:01:43 +0900 (6920c66)
+++ app/controllers/pages_controller.rb    2012-11-28 12:34:10 +0900 (62ebd09)
@@ -2,4 +2,9 @@
 class PagesController < ApplicationController
   def license; end
   def about; end
+
+  def explore
+    @github_projects = GithubProject.all
+    @user_glossaries = UserGlossary.all
+  end
 end

  Added: app/views/pages/explore.html.haml (+49 -0) 100644
===================================================================
--- /dev/null
+++ app/views/pages/explore.html.haml    2012-11-28 12:34:10 +0900 (0e28268)
@@ -0,0 +1,49 @@
+- @title = '登録用語集一覧'
+.container
+  %h1
+    = @title
+  %h2
+    インポート用語集の一覧
+  %ul.glossariesList
+    %li
+      = "debian_project : "
+      = link_to "Debian JP Project", "http://www.debian.or.jp/community/translate/", target: "_blank"
+    %li
+      = "edict : "
+      = link_to "The EDICT Dictionary File", "http://www.csse.monash.edu.au/~jwb/edict.html", target: "_blank"
+    %li
+      = "freebsd_jpman : "
+      = link_to "FreeBSD jpman", "http://www.jp.freebsd.org/man-jp/", target: "_blank"
+    %li
+      = "gene95 : "
+      = link_to "GENE95 Dictionary", "http://www.namazu.org/~tsuchiya/sdic/data/gene.html", target: "_blank"
+    %li
+      = "gnome_project : "
+      = link_to "GNOME Translation Project Ja", "http://live.gnome.org/TranslationProjectJa", target: "_blank"
+    %li
+      = "itil_japanese : "
+      = link_to "ITIL Japanese 2011 Glossary", "http://www.itil-officialsite.com/InternationalActivities/ITILGlossaries_2.aspx", target: "_blank"
+    %li
+      = "mozilla_japan : "
+      = link_to "Mozilla Japan", "http://www.mozilla-japan.org/jp/l10n/term/l10n.html", target: "_blank"
+    %li
+      = "postgresql_manual : "
+      = link_to "PostgreSQL7.1 Manual", "http://osb.sraoss.co.jp/PostgreSQL/Manual/", target: "_blank"
+
+  %h2
+    個人用語集の一覧
+  %ul.glossariesList
+    %li
+    - @user_glossaries.each do |glossary|
+      %li
+        = link_to "#{glossary.user.name}/#{glossary.link_text}", user_glossary_path(glossary.user, glossary)
+        - if glossary.description.present?
+          = " : #{glossary.description}"
+
+  %h2
+    登録されている Github プロジェクトの一覧
+  %ul.projectsList
+    - @github_projects.each do |project|
+      %li
+        = link_to project.full_name, project
+

  Modified: config/routes.rb (+1 -1)
===================================================================
--- config/routes.rb    2012-11-27 19:01:43 +0900 (8b75371)
+++ config/routes.rb    2012-11-28 12:34:10 +0900 (44e9748)
@@ -1,7 +1,7 @@
 LogalingServer::Application.routes.draw do
   get "search", :as => :search, :controller => 'search', :action => :index
 
-  %w(license about).each do |page_name|
+  %w(license about explore).each do |page_name|
     get page_name, to: "pages##{page_name}", as: page_name
   end
 
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



More information about the logaling-commit mailing list
Back to archive index