Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b946da44
Commit
b946da44
authored
Nov 04, 2011
by
Aleksei Kvitinskii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added tags to form
parent
6977150f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
1 deletion
+37
-1
app/assets/javascripts/application.js
app/assets/javascripts/application.js
+1
-0
app/assets/stylesheets/application.css
app/assets/stylesheets/application.css
+1
-0
app/views/projects/_form.html.haml
app/views/projects/_form.html.haml
+17
-0
db/schema.rb
db/schema.rb
+18
-1
No files found.
app/assets/javascripts/application.js
View file @
b946da44
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
//= require jquery-ui
//= require jquery-ui
//= require jquery_ujs
//= require jquery_ujs
//= require jquery.ui.selectmenu
//= require jquery.ui.selectmenu
//= require jquery.tagify
//= require jquery.cookie
//= require jquery.cookie
//= require_tree .
//= require_tree .
...
...
app/assets/stylesheets/application.css
View file @
b946da44
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
* the top of the compiled file, but it's generally better to create a new file per style scope.
* the top of the compiled file, but it's generally better to create a new file per style scope.
*= require jquery-ui/jquery-ui
*= require jquery-ui/jquery-ui
*= require jquery-ui/jquery.ui.selectmenu
*= require jquery-ui/jquery.ui.selectmenu
*= require jquery-ui/jquery.tagify
*= require_self
*= require_self
*= require_tree .
*= require_tree .
*/
*/
app/views/projects/_form.html.haml
View file @
b946da44
...
@@ -25,6 +25,11 @@
...
@@ -25,6 +25,11 @@
.left
=
f
.
label
:code
.left
=
f
.
label
:code
%cite
.right
http://yourserver/
%cite
.right
http://yourserver/
%td
=
f
.
text_field
:code
,
:placeholder
=>
"example"
%td
=
f
.
text_field
:code
,
:placeholder
=>
"example"
%tr
%td
=
f
.
label
:tag_list
%td
=
f
.
text_area
:tag_list
,
:placeholder
=>
"project tags"
,
:style
=>
"height:50px"
,
:id
=>
:tag_field
.field
.field
=
f
.
label
:description
=
f
.
label
:description
%br
/
%br
/
...
@@ -41,8 +46,20 @@
...
@@ -41,8 +46,20 @@
%h3
.prepend-top
Creating project
&
repository. Please wait for few minutes
%h3
.prepend-top
Creating project
&
repository. Please wait for few minutes
-
else
-
else
%h3
.prepend-top
Updating project
&
repository. Please wait for few minutes
%h3
.prepend-top
Updating project
&
repository. Please wait for few minutes
:javascript
:javascript
$
(
'
.new_project, .edit_project
'
).
bind
(
'
ajax:before
'
,
function
()
{
$
(
'
.new_project, .edit_project
'
).
bind
(
'
ajax:before
'
,
function
()
{
$
(
this
).
find
(
"
.form_content
"
).
hide
();
$
(
this
).
find
(
"
.form_content
"
).
hide
();
$
(
'
.ajax_loader
'
).
show
();
$
(
'
.ajax_loader
'
).
show
();
});
});
:javascript
$
(
function
(){
var
tag_field
=
$
(
'
#tag_field
'
).
tagify
();
$
(
'
form
'
).
submit
(
function
()
{
var
tag_field
=
$
(
'
#tag_field
'
)
tag_field
.
val
(
tag_field
.
tagify
(
'
serialize
'
)
);
return
true
;
});
})
db/schema.rb
View file @
b946da44
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
# It's strongly recommended to check this file into your version control system.
# It's strongly recommended to check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
:version
=>
20111
027152724
)
do
ActiveRecord
::
Schema
.
define
(
:version
=>
20111
101222453
)
do
create_table
"issues"
,
:force
=>
true
do
|
t
|
create_table
"issues"
,
:force
=>
true
do
|
t
|
t
.
string
"title"
t
.
string
"title"
...
@@ -68,6 +68,23 @@ ActiveRecord::Schema.define(:version => 20111027152724) do
...
@@ -68,6 +68,23 @@ ActiveRecord::Schema.define(:version => 20111027152724) do
t
.
datetime
"expires_at"
t
.
datetime
"expires_at"
end
end
create_table
"taggings"
,
:force
=>
true
do
|
t
|
t
.
integer
"tag_id"
t
.
integer
"taggable_id"
t
.
string
"taggable_type"
t
.
integer
"tagger_id"
t
.
string
"tagger_type"
t
.
string
"context"
t
.
datetime
"created_at"
end
add_index
"taggings"
,
[
"tag_id"
],
:name
=>
"index_taggings_on_tag_id"
add_index
"taggings"
,
[
"taggable_id"
,
"taggable_type"
,
"context"
],
:name
=>
"index_taggings_on_taggable_id_and_taggable_type_and_context"
create_table
"tags"
,
:force
=>
true
do
|
t
|
t
.
string
"name"
end
create_table
"users"
,
:force
=>
true
do
|
t
|
create_table
"users"
,
:force
=>
true
do
|
t
|
t
.
string
"email"
,
:default
=>
""
,
:null
=>
false
t
.
string
"email"
,
:default
=>
""
,
:null
=>
false
t
.
string
"encrypted_password"
,
:limit
=>
128
,
:default
=>
""
,
:null
=>
false
t
.
string
"encrypted_password"
,
:limit
=>
128
,
:default
=>
""
,
:null
=>
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment