Changeset 1234

Show
Ignore:
Timestamp:
09/15/08 14:43:58 (4 months ago)
Author:
piyawat
Message:

fix: Cancel button in email form; it should direct to email_index_url

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/views/email/_email_form.html.erb

    r1231 r1234  
    6262          <td>&nbsp;</td> 
    6363          <td style="text-align: right;"> 
    64             <%= link_to _("Cancel"), email_user_url %> 
     64            <%= link_to _("Cancel"), email_index_url %> 
    6565            &nbsp; 
    6666            <%= spinned_submit_tag _("Send"), _("Sending...") %>          
  • trunk/app/views/profile/edit.html.erb

    r1090 r1234  
    1111      <%= render :partial => "shared/notices", :object => flash[:notice] %><% flash[:notice] = nil -%> 
    1212 
    13       <% form_tag profile_edit_url :username => @owner.username do %> 
     13      <% form_tag profile_edit_url(:username => @owner.username) do %> 
    1414      <table> 
    1515        <tr> 
  • trunk/db/development_structure.sql

    r735 r1234  
     1CREATE TABLE `assistings` ( 
     2  `id` int(11) NOT NULL auto_increment, 
     3  `assistant_id` int(11) default '0', 
     4  `user_id` int(11) default '0', 
     5  PRIMARY KEY  (`id`), 
     6  KEY `index_assistings_on_assistant_id` (`assistant_id`), 
     7  KEY `index_assistings_on_user_id` (`user_id`), 
     8  KEY `index_assistings_on_assistant_id_and_user_id` (`assistant_id`,`user_id`) 
     9) ENGINE=MyISAM AUTO_INCREMENT=22 DEFAULT CHARSET=utf8; 
     10 
    111CREATE TABLE `blogs` ( 
    212  `id` int(11) NOT NULL auto_increment, 
     
    414  `address` varchar(255) default NULL, 
    515  `title` varchar(255) default NULL, 
     16  `gadget` text, 
     17  `disabled` tinyint(1) default '0', 
     18  `created_at` datetime default NULL, 
     19  `modified_at` datetime default NULL, 
    620  `description` text, 
    7   `disabled` tinyint(1) default '0', 
    8   `created_at` datetime default NULL, 
    9   `modified_at` datetime default NULL, 
    10   `hue_save` int(11) default NULL, 
    11   `saturation_save` int(11) default NULL, 
    12   `luminosity_save` int(11) default NULL, 
    13   `custom_css_save` text, 
    1421  PRIMARY KEY  (`id`), 
    1522  UNIQUE KEY `blogs_address_index` (`address`), 
     
    1724  KEY `blogs_created_at_index` (`created_at`,`disabled`), 
    1825  KEY `index_blogs_on_id_and_disabled` (`id`,`disabled`) 
    19 ) ENGINE=MyISAM AUTO_INCREMENT=17711 DEFAULT CHARSET=utf8; 
     26) ENGINE=MyISAM AUTO_INCREMENT=34287 DEFAULT CHARSET=utf8; 
    2027 
    2128CREATE TABLE `bookmarks` ( 
     
    3037  KEY `bookmarks_user_id_index` (`user_id`,`created_at`), 
    3138  KEY `bookmarks_created_at_index` (`created_at`) 
    32 ) ENGINE=MyISAM AUTO_INCREMENT=8182 DEFAULT CHARSET=utf8; 
    33  
    34 CREATE TABLE `comment_stats` ( 
    35   `id` int(11) NOT NULL auto_increment, 
    36   `commentable_id` int(11) NOT NULL, 
    37   `commentable_type` varchar(255) default NULL, 
    38   `comment_counter` int(11) default NULL, 
    39   `last_commented_at` datetime default NULL, 
    40   PRIMARY KEY  (`id`), 
    41   KEY `comment_stats_last_commented_at_index` (`last_commented_at`,`commentable_type`,`commentable_id`), 
    42   KEY `comment_stats_commentable_id_index` (`commentable_id`,`commentable_type`,`last_commented_at`), 
    43   KEY `comment_stats_commentable_type_index` (`commentable_type`,`commentable_id`,`last_commented_at`), 
    44   KEY `comment_stats_commentable_type_counter_index` (`commentable_type`,`comment_counter`) 
    45 ) ENGINE=MyISAM AUTO_INCREMENT=45693 DEFAULT CHARSET=utf8; 
     39) ENGINE=MyISAM AUTO_INCREMENT=9368 DEFAULT CHARSET=utf8; 
    4640 
    4741CREATE TABLE `comments` ( 
     
    6054  KEY `comments_commentable_id_index` (`commentable_id`,`commentable_type`,`created_at`), 
    6155  KEY `comments_commentable_type_index` (`commentable_type`,`commentable_id`,`created_at`) 
    62 ) ENGINE=MyISAM AUTO_INCREMENT=224021 DEFAULT CHARSET=utf8; 
     56) ENGINE=MyISAM AUTO_INCREMENT=574744 DEFAULT CHARSET=utf8; 
    6357 
    6458CREATE TABLE `hits` ( 
     
    6660  `hittable_id` int(11) NOT NULL, 
    6761  `hittable_type` varchar(255) default NULL, 
    68   `count` int(11) default NULL
     62  `count` int(11) default '0'
    6963  `last_session_id` varchar(255) default NULL, 
    7064  `last_ip` varchar(255) default NULL, 
     
    7367  KEY `index_hits_on_hittable_id_and_hittable_type` (`hittable_id`,`hittable_type`), 
    7468  KEY `index_hits_on_modified_at_and_hittable_type_and_hittable_id` (`modified_at`,`hittable_type`,`hittable_id`) 
    75 ) ENGINE=MyISAM AUTO_INCREMENT=1611864 DEFAULT CHARSET=utf8; 
     69) ENGINE=MyISAM AUTO_INCREMENT=1809725 DEFAULT CHARSET=utf8; 
     70 
     71CREATE TABLE `journal_entries` ( 
     72  `id` int(11) NOT NULL auto_increment, 
     73  `user_id` int(11) NOT NULL, 
     74  `content` text, 
     75  `visibility` int(11) default '2', 
     76  `created_at` datetime default NULL, 
     77  `modified_at` datetime default NULL, 
     78  PRIMARY KEY  (`id`), 
     79  KEY `index_journal_entries_on_user_id` (`user_id`), 
     80  KEY `index_journal_entries_on_visibility` (`visibility`), 
     81  KEY `index_journal_entries_on_created_at` (`created_at`), 
     82  KEY `index_journal_entries_on_visibility_and_created_at_and_user_id` (`visibility`,`created_at`,`user_id`) 
     83) ENGINE=MyISAM AUTO_INCREMENT=55 DEFAULT CHARSET=utf8; 
     84 
     85CREATE TABLE `journal_followings` ( 
     86  `id` int(11) NOT NULL auto_increment, 
     87  `owner_id` int(11) NOT NULL, 
     88  `follower_id` int(11) NOT NULL, 
     89  `created_at` datetime default NULL, 
     90  PRIMARY KEY  (`id`), 
     91  KEY `index_journal_followings_on_owner_id` (`owner_id`), 
     92  KEY `index_journal_followings_on_follower_id` (`follower_id`), 
     93  KEY `index_journal_followings_on_owner_id_and_follower_id` (`owner_id`,`follower_id`), 
     94  KEY `index_journal_followings_on_created_at` (`created_at`) 
     95) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; 
    7696 
    7797CREATE TABLE `pictures` ( 
     
    82102  PRIMARY KEY  (`id`), 
    83103  KEY `pictures_user_id_index` (`user_id`) 
    84 ) ENGINE=MyISAM AUTO_INCREMENT=8241 DEFAULT CHARSET=utf8; 
     104) ENGINE=MyISAM AUTO_INCREMENT=31045 DEFAULT CHARSET=utf8; 
    85105 
    86106CREATE TABLE `planet_subscriptions` ( 
     
    92112  KEY `planet_subscriptions_blog_id_index` (`blog_id`,`planet_id`), 
    93113  KEY `planet_subscriptions_created_at_index` (`created_at`) 
    94 ) ENGINE=MyISAM AUTO_INCREMENT=37475 DEFAULT CHARSET=utf8; 
     114) ENGINE=MyISAM AUTO_INCREMENT=80369 DEFAULT CHARSET=utf8; 
    95115 
    96116CREATE TABLE `planets` ( 
     
    106126  KEY `planets_user_id_index` (`user_id`), 
    107127  KEY `planets_created_at_index` (`created_at`) 
    108 ) ENGINE=MyISAM AUTO_INCREMENT=6886 DEFAULT CHARSET=utf8; 
     128) ENGINE=MyISAM AUTO_INCREMENT=13769 DEFAULT CHARSET=utf8; 
    109129 
    110130CREATE TABLE `posts` ( 
     
    122142  `comment_counter` int(11) default '0', 
    123143  `last_commented_at` datetime default NULL, 
     144  `member_only_readable` tinyint(1) default '0', 
     145  `member_only_commentable` tinyint(1) default '0', 
     146  `section_id` int(11) default '0', 
    124147  PRIMARY KEY  (`id`), 
    125148  UNIQUE KEY `posts_blog_id_index` (`blog_id`,`created_at`,`hidden`), 
     
    127150  KEY `posts_started_at_index` (`started_at`,`ended_at`), 
    128151  KEY `index_posts_on_blog_id_and_hidden_and_created_at` (`blog_id`,`hidden`,`created_at`), 
    129   KEY `idx_posts_lca_cc_bid_hdn` (`last_commented_at`,`comment_counter`,`blog_id`,`hidden`) 
    130 ) ENGINE=MyISAM AUTO_INCREMENT=90248 DEFAULT CHARSET=utf8; 
     152  KEY `idx_posts_lca_cc_bid_hdn` (`last_commented_at`,`comment_counter`,`blog_id`,`hidden`), 
     153  KEY `index_posts_on_section_id_and_created_at_and_hidden_and_blog_id` (`section_id`,`created_at`,`hidden`,`blog_id`) 
     154) ENGINE=MyISAM AUTO_INCREMENT=170786 DEFAULT CHARSET=utf8; 
    131155 
    132156CREATE TABLE `questions` ( 
     
    152176  KEY `index_questions_on_questioner_id_and_created_at_and_answered_at` (`questioner_id`,`created_at`,`answered_at`), 
    153177  KEY `idx_questions_lca_cc_uid` (`last_commented_at`,`comment_counter`,`user_id`) 
    154 ) ENGINE=MyISAM AUTO_INCREMENT=5229 DEFAULT CHARSET=utf8; 
    155  
    156 CREATE TABLE `schema_info` ( 
    157   `version` int(11) default NULL 
    158 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 
     178) ENGINE=MyISAM AUTO_INCREMENT=8993 DEFAULT CHARSET=utf8; 
     179 
     180CREATE TABLE `schema_migrations` ( 
     181  `version` varchar(255) NOT NULL, 
     182  UNIQUE KEY `unique_schema_migrations` (`version`) 
     183) ENGINE=InnoDB DEFAULT CHARSET=latin1; 
     184 
     185CREATE TABLE `sections` ( 
     186  `id` int(11) NOT NULL auto_increment, 
     187  `name` varchar(255) default NULL, 
     188  `importance` int(11) default '0', 
     189  PRIMARY KEY  (`id`), 
     190  UNIQUE KEY `index_sections_on_name` (`name`), 
     191  KEY `index_sections_on_importance` (`importance`) 
     192) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=utf8; 
    159193 
    160194CREATE TABLE `sessions` ( 
     
    166200  PRIMARY KEY  (`id`), 
    167201  KEY `session_id_idx` (`session_id`) 
    168 ) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=latin1; 
     202) ENGINE=MyISAM AUTO_INCREMENT=65585819 DEFAULT CHARSET=latin1; 
    169203 
    170204CREATE TABLE `sites` ( 
     
    173207  `title_image` varchar(255) default '', 
    174208  `locale` varchar(255) default 'en_US', 
    175   `announcement_planet` varchar(255) default '', 
    176   `featured_planet` varchar(255) default NULL, 
    177209  `title` varchar(255) default '', 
    178210  `home_content` text, 
     
    182214  `notifier_email_prefix` varchar(255) default '[KV Error]', 
    183215  `notifier_email_recipients` varchar(255) default '', 
    184   `google_search_code` text, 
    185216  `modified_at` datetime default NULL, 
    186217  `pre_reg_msg` text, 
    187218  `mailmasters` varchar(255) default '', 
    188219  `subtitle` varchar(255) default '', 
     220  `system_message` text, 
     221  `google_custom_search_code` text, 
     222  `featured_planets` text, 
     223  `featured_post` int(11) default '0', 
     224  `skip_pre_reg` tinyint(1) default '0', 
     225  `show_reg_link` tinyint(1) default '1', 
     226  `user_profile_visibility` int(11) default '2', 
    189227  PRIMARY KEY  (`id`), 
    190228  UNIQUE KEY `sites_domain_index` (`domain`) 
    191229) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; 
    192230 
     231CREATE TABLE `special_pages` ( 
     232  `id` int(11) NOT NULL auto_increment, 
     233  `address` varchar(255) default NULL, 
     234  `title` varchar(255) default NULL, 
     235  `content` text, 
     236  `created_at` datetime default NULL, 
     237  `updated_at` datetime default NULL, 
     238  PRIMARY KEY  (`id`), 
     239  KEY `index_special_pages_on_address` (`address`) 
     240) ENGINE=MyISAM DEFAULT CHARSET=utf8; 
     241 
    193242CREATE TABLE `tag_sets` ( 
    194243  `id` int(11) NOT NULL auto_increment, 
     
    200249  KEY `index_tag_sets_on_user_id` (`user_id`), 
    201250  KEY `index_tag_sets_on_title` (`title`) 
    202 ) ENGINE=MyISAM AUTO_INCREMENT=168 DEFAULT CHARSET=utf8; 
     251) ENGINE=MyISAM AUTO_INCREMENT=462 DEFAULT CHARSET=utf8; 
    203252 
    204253CREATE TABLE `taggings` ( 
     
    212261  KEY `taggings_tag_id_index` (`tag_id`,`taggable_type`), 
    213262  KEY `taggings_taggable_id_index` (`taggable_id`,`taggable_type`) 
    214 ) ENGINE=MyISAM AUTO_INCREMENT=964244 DEFAULT CHARSET=utf8; 
     263) ENGINE=MyISAM AUTO_INCREMENT=2173737 DEFAULT CHARSET=utf8; 
    215264 
    216265CREATE TABLE `tags` ( 
     
    221270  UNIQUE KEY `tags_name_index` (`name`), 
    222271  KEY `index_tags_on_count` (`count`) 
    223 ) ENGINE=MyISAM AUTO_INCREMENT=69229 DEFAULT CHARSET=utf8; 
     272) ENGINE=MyISAM AUTO_INCREMENT=171927 DEFAULT CHARSET=utf8; 
    224273 
    225274CREATE TABLE `themes` ( 
     
    228277  `themeable_type` varchar(255) default NULL, 
    229278  `user_id` int(11) NOT NULL, 
    230   `hue` int(11) default '0', 
    231   `saturation` int(11) default '0', 
    232   `luminosity` int(11) default '0', 
     279  `theme_name` varchar(255) default NULL, 
    233280  `custom_css` text, 
    234281  `show_title` tinyint(1) default '1', 
    235282  PRIMARY KEY  (`id`), 
    236   KEY `themes_user_id_index` (`user_id`), 
    237   KEY `themes_themeable_id_index` (`themeable_id`,`themeable_type`), 
    238   KEY `themes_themeable_type_index` (`themeable_type`,`themeable_id`) 
    239 ) ENGINE=MyISAM AUTO_INCREMENT=3111 DEFAULT CHARSET=utf8; 
     283  KEY `index_themes_on_user_id` (`user_id`), 
     284  KEY `index_themes_on_themeable_id_and_themeable_type` (`themeable_id`,`themeable_type`), 
     285  KEY `index_themes_on_themeable_type_and_themeable_id` (`themeable_type`,`themeable_id`) 
     286) ENGINE=MyISAM AUTO_INCREMENT=1980 DEFAULT CHARSET=utf8; 
    240287 
    241288CREATE TABLE `uploads` ( 
     
    254301  KEY `uploads_user_id_index` (`user_id`,`created_at`), 
    255302  KEY `uploads_filename_index` (`filename`,`user_id`), 
    256   KEY `idx_uploads_lca_cc_uid` (`last_commented_at`,`comment_counter`,`user_id`) 
    257 ) ENGINE=MyISAM AUTO_INCREMENT=72681 DEFAULT CHARSET=utf8; 
     303  KEY `idx_uploads_lca_cc_uid` (`last_commented_at`,`comment_counter`,`user_id`), 
     304  KEY `index_uploads_on_user_id_and_content_type` (`user_id`,`content_type`) 
     305) ENGINE=MyISAM AUTO_INCREMENT=158142 DEFAULT CHARSET=utf8; 
    258306 
    259307CREATE TABLE `users` ( 
     
    287335  `created_at` datetime default NULL, 
    288336  `modified_at` datetime default NULL, 
    289   `last_login_at` datetime default NULL
     337  `profile_visibility` int(11) default '0'
    290338  PRIMARY KEY  (`id`), 
    291339  UNIQUE KEY `users_username_index` (`username`), 
    292340  KEY `users_email_index` (`email`), 
    293341  KEY `users_created_at_index` (`created_at`) 
    294 ) ENGINE=MyISAM AUTO_INCREMENT=21879 DEFAULT CHARSET=utf8; 
    295  
    296 INSERT INTO schema_info (version) VALUES (46) 
     342) ENGINE=MyISAM AUTO_INCREMENT=46422 DEFAULT CHARSET=utf8; 
     343 
     344INSERT INTO schema_migrations (version) VALUES ('1'); 
     345 
     346INSERT INTO schema_migrations (version) VALUES ('10'); 
     347 
     348INSERT INTO schema_migrations (version) VALUES ('11'); 
     349 
     350INSERT INTO schema_migrations (version) VALUES ('12'); 
     351 
     352INSERT INTO schema_migrations (version) VALUES ('13'); 
     353 
     354INSERT INTO schema_migrations (version) VALUES ('14'); 
     355 
     356INSERT INTO schema_migrations (version) VALUES ('15'); 
     357 
     358INSERT INTO schema_migrations (version) VALUES ('16'); 
     359 
     360INSERT INTO schema_migrations (version) VALUES ('17'); 
     361 
     362INSERT INTO schema_migrations (version) VALUES ('18'); 
     363 
     364INSERT INTO schema_migrations (version) VALUES ('19'); 
     365 
     366INSERT INTO schema_migrations (version) VALUES ('2'); 
     367 
     368INSERT INTO schema_migrations (version) VALUES ('20'); 
     369 
     370INSERT INTO schema_migrations (version) VALUES ('21'); 
     371 
     372INSERT INTO schema_migrations (version) VALUES ('22'); 
     373 
     374INSERT INTO schema_migrations (version) VALUES ('23'); 
     375 
     376INSERT INTO schema_migrations (version) VALUES ('24'); 
     377 
     378INSERT INTO schema_migrations (version) VALUES ('25'); 
     379 
     380INSERT INTO schema_migrations (version) VALUES ('26'); 
     381 
     382INSERT INTO schema_migrations (version) VALUES ('27'); 
     383 
     384INSERT INTO schema_migrations (version) VALUES ('28'); 
     385 
     386INSERT INTO schema_migrations (version) VALUES ('29'); 
     387 
     388INSERT INTO schema_migrations (version) VALUES ('3'); 
     389 
     390INSERT INTO schema_migrations (version) VALUES ('30'); 
     391 
     392INSERT INTO schema_migrations (version) VALUES ('31'); 
     393 
     394INSERT INTO schema_migrations (version) VALUES ('32'); 
     395 
     396INSERT INTO schema_migrations (version) VALUES ('33'); 
     397 
     398INSERT INTO schema_migrations (version) VALUES ('34'); 
     399 
     400INSERT INTO schema_migrations (version) VALUES ('35'); 
     401 
     402INSERT INTO schema_migrations (version) VALUES ('36'); 
     403 
     404INSERT INTO schema_migrations (version) VALUES ('37'); 
     405 
     406INSERT INTO schema_migrations (version) VALUES ('38'); 
     407 
     408INSERT INTO schema_migrations (version) VALUES ('39'); 
     409 
     410INSERT INTO schema_migrations (version) VALUES ('4'); 
     411 
     412INSERT INTO schema_migrations (version) VALUES ('40'); 
     413 
     414INSERT INTO schema_migrations (version) VALUES ('41'); 
     415 
     416INSERT INTO schema_migrations (version) VALUES ('42'); 
     417 
     418INSERT INTO schema_migrations (version) VALUES ('43'); 
     419 
     420INSERT INTO schema_migrations (version) VALUES ('44'); 
     421 
     422INSERT INTO schema_migrations (version) VALUES ('45'); 
     423 
     424INSERT INTO schema_migrations (version) VALUES ('46'); 
     425 
     426INSERT INTO schema_migrations (version) VALUES ('47'); 
     427 
     428INSERT INTO schema_migrations (version) VALUES ('48'); 
     429 
     430INSERT INTO schema_migrations (version) VALUES ('49'); 
     431 
     432INSERT INTO schema_migrations (version) VALUES ('5'); 
     433 
     434INSERT INTO schema_migrations (version) VALUES ('50'); 
     435 
     436INSERT INTO schema_migrations (version) VALUES ('51'); 
     437 
     438INSERT INTO schema_migrations (version) VALUES ('52'); 
     439 
     440INSERT INTO schema_migrations (version) VALUES ('53'); 
     441 
     442INSERT INTO schema_migrations (version) VALUES ('54'); 
     443 
     444INSERT INTO schema_migrations (version) VALUES ('55'); 
     445 
     446INSERT INTO schema_migrations (version) VALUES ('56'); 
     447 
     448INSERT INTO schema_migrations (version) VALUES ('57'); 
     449 
     450INSERT INTO schema_migrations (version) VALUES ('58'); 
     451 
     452INSERT INTO schema_migrations (version) VALUES ('59'); 
     453 
     454INSERT INTO schema_migrations (version) VALUES ('6'); 
     455 
     456INSERT INTO schema_migrations (version) VALUES ('60'); 
     457 
     458INSERT INTO schema_migrations (version) VALUES ('61'); 
     459 
     460INSERT INTO schema_migrations (version) VALUES ('62'); 
     461 
     462INSERT INTO schema_migrations (version) VALUES ('63'); 
     463 
     464INSERT INTO schema_migrations (version) VALUES ('64'); 
     465 
     466INSERT INTO schema_migrations (version) VALUES ('65'); 
     467 
     468INSERT INTO schema_migrations (version) VALUES ('66'); 
     469 
     470INSERT INTO schema_migrations (version) VALUES ('67'); 
     471 
     472INSERT INTO schema_migrations (version) VALUES ('68'); 
     473 
     474INSERT INTO schema_migrations (version) VALUES ('7'); 
     475 
     476INSERT INTO schema_migrations (version) VALUES ('8'); 
     477 
     478INSERT INTO schema_migrations (version) VALUES ('9');