[Groonga-commit] groonga/gcs [ember] Rename show* to goto*

Back to archive index

Yoji SHIDARA null+****@clear*****
Tue Oct 2 04:22:02 JST 2012


Yoji SHIDARA	2012-10-02 04:22:02 +0900 (Tue, 02 Oct 2012)

  New Revision: 02730fea4d8fc15a7454e82ea2037c2052dcd106
  https://github.com/groonga/gcs/commit/02730fea4d8fc15a7454e82ea2037c2052dcd106

  Log:
    Rename show* to goto*

  Modified files:
    public/js/gcs/router.js
    views/index.jade

  Modified: public/js/gcs/router.js (+3 -3)
===================================================================
--- public/js/gcs/router.js    2012-10-02 04:15:11 +0900 (5e9c48b)
+++ public/js/gcs/router.js    2012-10-02 04:22:02 +0900 (156c33e)
@@ -1,8 +1,8 @@
 App.Router = Ember.Router.extend({
   root: Ember.Route.extend({
-    showIndex: Ember.State.transitionTo('root.index'),
-    showSearch: Ember.State.transitionTo('domains.search'),
-    showDomain: Ember.State.transitionTo('domains.show'),
+    gotoIndex: Ember.State.transitionTo('root.index'),
+    gotoSearch: Ember.State.transitionTo('domains.search'),
+    gotoDomain: Ember.State.transitionTo('domains.show'),
     index: Ember.Route.extend({
       route: '/',
       connectOutlets: function(router, context) {

  Modified: views/index.jade (+5 -5)
===================================================================
--- views/index.jade    2012-10-02 04:15:11 +0900 (4cb0063)
+++ views/index.jade    2012-10-02 04:22:02 +0900 (1f30123)
@@ -19,19 +19,19 @@ html
       .navbar.navbar-fixed-top
         .navbar-inner
           .container
-            <a class="brand" href {{action showIndex}}>Groonga CloudSearch</a>
+            <a class="brand" href {{action gotoIndex}}>Groonga CloudSearch</a>
       .container
         .row
           .span2
             .well(style="padding: 10px 0 10px 0;")
               ul.nav.nav-list
                 {{#view view.NavItemView section="Home" item=null}}
-                <a href {{action showIndex this}}><i class="icon-home"></i> Home</a>
+                <a href {{action gotoIndex this}}><i class="icon-home"></i> Home</a>
                 {{/view}}
                 li.nav-header Domains
                 {{#each App.domains}}
                 {{#view view.NavItemView section="Domain" itemBinding="name"}}
-                <a href {{action showDomain this}}><i class="icon-hdd"></i> {{name}}</a>
+                <a href {{action gotoDomain this}}><i class="icon-hdd"></i> {{name}}</a>
                 {{/view}}
                 {{/each}}
           .span10
@@ -53,10 +53,10 @@ html
 
       ul.nav.nav-tabs
         {{#view view.NavItemView item="About"}}
-        <a href {{action showDomain this.content}}>About</a>
+        <a href {{action gotoDomain this.content}}>About</a>
         {{/view}}
         {{#view view.NavItemView item="Search"}}
-        <a href {{action showSearch this.content}}>Search</a>
+        <a href {{action gotoSearch this.content}}>Search</a>
         {{/view}}
 
       {{outlet}}
-------------- next part --------------
HTML����������������������������...
Download 



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