snippets are ready
This commit is contained in:
parent
526ad466c8
commit
9265de3d25
28 changed files with 366 additions and 8 deletions
9
app/assets/javascripts/snippets.js
Normal file
9
app/assets/javascripts/snippets.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
$(document).ready(function(){
|
||||
$("#snippets-table .snippet").live('click', function(e){
|
||||
if(e.target.nodeName != "A" && e.target.nodeName != "INPUT") {
|
||||
location.href = $(this).attr("url");
|
||||
e.stopPropagation();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
|
@ -22,8 +22,8 @@ td.linenos{
|
|||
|
||||
.highlight{
|
||||
background:none;
|
||||
padding:10px 0px 0px 0;
|
||||
margin-left:10px;
|
||||
padding:10px 0px 0px 10px;
|
||||
margin-left:0px;
|
||||
}
|
||||
.highlight pre{
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ td.linenos {
|
|||
}
|
||||
|
||||
td.code .highlight {
|
||||
overflow-x: scroll;
|
||||
overflow: auto;
|
||||
}
|
||||
table.highlighttable pre{
|
||||
padding:0;
|
||||
|
|
|
@ -310,6 +310,7 @@ input.ssh_project_url {
|
|||
}
|
||||
|
||||
#projects-list .project,
|
||||
#snippets-table .snippet,
|
||||
#issues-table .issue{
|
||||
cursor:pointer;
|
||||
|
||||
|
@ -360,6 +361,8 @@ input.ssh_project_url {
|
|||
.user_new,
|
||||
.edit_user,
|
||||
.new_project,
|
||||
.new_snippet,
|
||||
.edit_snippet,
|
||||
.edit_project {
|
||||
input[type='text'],
|
||||
input[type='email'],
|
||||
|
|
3
app/assets/stylesheets/snippets.css.scss
Normal file
3
app/assets/stylesheets/snippets.css.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
// Place all the styles related to the Snippets controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
Loading…
Add table
Add a link
Reference in a new issue