loosened username requirement

added min-width for body
added the description metatag for the project home page
This commit is contained in:
hyung-hwan 2010-08-31 13:22:35 +00:00
parent fc8acff0e3
commit 8a56e4460f
3 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,8 @@ class Main extends Controller
$this->load->model ('UserModel', 'users'); $this->load->model ('UserModel', 'users');
$this->load->library(array('encrypt', 'form_validation', 'session')); $this->load->library(array('encrypt', 'form_validation', 'session'));
$this->form_validation->set_rules('user_name', 'username', 'required|alpha_dash'); //$this->form_validation->set_rules('user_name', 'username', 'required|alpha_dash');
$this->form_validation->set_rules('user_name', 'username', 'required');
$this->form_validation->set_rules('user_pass', 'password', 'required'); $this->form_validation->set_rules('user_pass', 'password', 'required');
$this->form_validation->set_error_delimiters('<span class="form_field_error">','</span>'); $this->form_validation->set_error_delimiters('<span class="form_field_error">','</span>');

View File

@ -5,6 +5,7 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="<?=$project->id?>" /> <meta name="keywords" content="<?=$project->id?>" />
<meta name="description" content="<?=htmlspecialchars($project->summary)?>" />
<link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/common.css')?>" /> <link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/common.css')?>" />
<link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/project.css')?>" /> <link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/project.css')?>" />

View File

@ -1,6 +1,7 @@
body { body {
padding: 0; padding: 0;
margin: 5px 5px 5px 5px; margin: 5px 5px 5px 5px;
min-width: 600px;
} }
.content .content