This commit is contained in:
Nico 2013-01-12 17:04:58 +01:00
parent d72a1e1931
commit f4d2e650f5
67 changed files with 137 additions and 525 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 558 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 902 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 817 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1023 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -8,11 +8,14 @@ function init_note_upload_fields(note_id){
autoUpload: true,
progressall: function (e, data) {
var progress = parseInt(data.loaded / data.total * 100, 10);
$(this).find('.progress .bar').html(progress + '% téléchargé.');
if(progress == 100){
$(this).find('.progress').html('traitement en cours.');
}
else{
$(this).find('.progress').html(progress + '% téléchargé.');}
},
always: function (e, data) {
$(this).find('.progress .bar').html("");
$(this).find('.progress').html("");
},
drop: function (e, data) {
@ -32,12 +35,19 @@ function init_note_upload_fields(note_id){
});
}
$(document).ready(function () {
$(".note .add_file").live("click",function(){
$(this).next('input').click();
return false;
});
});

View File

@ -43,6 +43,82 @@
body {
-webkit-font-smoothing: antialiased;
width:100%;
font-size: 13px;
font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, Verdana, sans-serif;
padding: 0px;
margin: 0px;
&.wysihtml5-editor{
background:transparent;
}
}
#breadcrumb{
padding:0px;
height:40px;
position:relative;
color:#FFFFFF;
background: #2E2E2E;
*{
color:#FFFFFF;
}
nav{
a{
display:inline-block;
padding:13px;
}
}
.personnal{
width:140px;
float:right;
position:relative;
span{
display:inline-block;
top:-15px;
position:relative;
}
.avatar{
width:36px;
border-radius:50%;
margin:2px;
}
.menu{
display:none;
}
&:hover{
.menu{
display:block;
position:absolute;
z-index:1000;
top:40px;
background:#2E2E2E;
a{
display:block;
width:120px;
padding:10px 15px;
}
}
}
}
}
ol {
&.code {
@ -64,117 +140,6 @@ ol {
/* Dashboard */
#dashboard_menu{
a
{
float:left;
display:block;
margin:30px;
padding:10px;
margin-bottom:20px;
@include background(linear-gradient(#FAFAFA, #EEE));
@include border-radius(5px);
color:black;
background: white;
width: 200px;
padding: 10px;
margin: auto;
position:relative;
margin-left:20px;
&:before,
&:after {
content:"";
position:absolute;
z-index:-1;
bottom:15px;
left:10px;
width:50%;
height:20%;
max-width:300px;
@include box-shadow(rgba(0, 0, 0, 0.7) 0 20px 15px );
@include transform(rotate(-3deg));
}
&:after{
right:10px;
left:auto;
@include transform(rotate(3deg));
}
display:block;
padding:15px;
margin-bottom:20px;
text-align:center;
color:black;
img{
display:block;
margin:auto;
height:100px;
}
&:hover{
@include border-radius(5px 5px 12px 5px / 5px 5px 25px 5px);
@include background-image(linear-gradient(bottom right, #cccccc, white 10%,white));
&:after{
@include transform(rotate(10deg));
}
}
}
}

View File

@ -17,19 +17,7 @@
}
body {
-webkit-font-smoothing: antialiased;
width:100%;
font-size: 13px;
font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, Verdana, sans-serif;
padding: 0px;
margin: 0px;
&.wysihtml5-editor{
background:transparent;
}
}
@ -78,33 +66,13 @@ body {
/* general.css */
#menu_items_breadcrumbs .add_menu_item_link{
float:right;
margin-top:2px;
}
#breadcrumb{
padding:10px 10px 10px 10px;
position:relative;
color:#FFFFFF;
background: #2E2E2E;
}
#breadcrumb .logout_link{
position:absolute;
right:10px;
top:10px;
}
#breadcrumb *{
color:#FFFFFF;
}
.main_slide{
@ -439,352 +407,6 @@ a:hover{
color:#3F94EB;
}
/* core/fluid_grid */
/*
Variable Grid System (Fluid Version).
Learn more ~ http://www.spry-soft.com/grids/
Based on 960 Grid System - http://960.gs/ & 960 Fluid - http://www.designinfluences.com/
Licensed under GPL and MIT.
*/
/* Containers
----------------------------------------------------------------------------------------------------*/
.container_12 {
width: 100%;
/*
margin-left: 4%;
margin-right: 4%;
*/
}
/* Grid >> Global
----------------------------------------------------------------------------------------------------*/
.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12 {
display:inline;
float: left;
position: relative;
margin-left: 1%;
margin-right: 1%;
}
/* Grid >> Children (Alpha ~ First, Omega ~ Last)
----------------------------------------------------------------------------------------------------*/
.alpha {
margin-left: 0;
}
.omega {
margin-right: 0;
}
/* Grid >> 12 Columns
----------------------------------------------------------------------------------------------------*/
.container_12 .grid_1 {
width:6.333%;
}
.container_12 .grid_2 {
width:14.667%;
}
.container_12 .grid_3 {
width:23.0%;
}
.container_12 .grid_4 {
width:31.333%;
}
.container_12 .grid_5 {
width:39.667%;
}
.container_12 .grid_6 {
width:48.0%;
}
.container_12 .grid_7 {
width:56.333%;
}
.container_12 .grid_8 {
width:64.667%;
}
.container_12 .grid_9 {
width:73.0%;
}
.container_12 .grid_10 {
width:81.333%;
}
.container_12 .grid_11 {
width:89.667%;
}
.container_12 .grid_12 {
width:98.0%;
}
/* Prefix Extra Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/
.container_12 .prefix_1 {
padding-left:8.333%;
}
.container_12 .prefix_2 {
padding-left:16.667%;
}
.container_12 .prefix_3 {
padding-left:25.0%;
}
.container_12 .prefix_4 {
padding-left:33.333%;
}
.container_12 .prefix_5 {
padding-left:41.667%;
}
.container_12 .prefix_6 {
padding-left:50.0%;
}
.container_12 .prefix_7 {
padding-left:58.333%;
}
.container_12 .prefix_8 {
padding-left:66.667%;
}
.container_12 .prefix_9 {
padding-left:75.0%;
}
.container_12 .prefix_10 {
padding-left:83.333%;
}
.container_12 .prefix_11 {
padding-left:91.667%;
}
/* Suffix Extra Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/
.container_12 .suffix_1 {
padding-right:8.333%;
}
.container_12 .suffix_2 {
padding-right:16.667%;
}
.container_12 .suffix_3 {
padding-right:25.0%;
}
.container_12 .suffix_4 {
padding-right:33.333%;
}
.container_12 .suffix_5 {
padding-right:41.667%;
}
.container_12 .suffix_6 {
padding-right:50.0%;
}
.container_12 .suffix_7 {
padding-right:58.333%;
}
.container_12 .suffix_8 {
padding-right:66.667%;
}
.container_12 .suffix_9 {
padding-right:75.0%;
}
.container_12 .suffix_10 {
padding-right:83.333%;
}
.container_12 .suffix_11 {
padding-right:91.667%;
}
/* Push Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/
.container_12 .push_1 {
left:8.333%;
}
.container_12 .push_2 {
left:16.667%;
}
.container_12 .push_3 {
left:25.0%;
}
.container_12 .push_4 {
left:33.333%;
}
.container_12 .push_5 {
left:41.667%;
}
.container_12 .push_6 {
left:50.0%;
}
.container_12 .push_7 {
left:58.333%;
}
.container_12 .push_8 {
left:66.667%;
}
.container_12 .push_9 {
left:75.0%;
}
.container_12 .push_10 {
left:83.333%;
}
.container_12 .push_11 {
left:91.667%;
}
/* Pull Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/
.container_12 .pull_1 {
left:-8.333%;
}
.container_12 .pull_2 {
left:-16.667%;
}
.container_12 .pull_3 {
left:-25.0%;
}
.container_12 .pull_4 {
left:-33.333%;
}
.container_12 .pull_5 {
left:-41.667%;
}
.container_12 .pull_6 {
left:-50.0%;
}
.container_12 .pull_7 {
left:-58.333%;
}
.container_12 .pull_8 {
left:-66.667%;
}
.container_12 .pull_9 {
left:-75.0%;
}
.container_12 .pull_10 {
left:-83.333%;
}
.container_12 .pull_11 {
left:-91.667%;
}
/* Clear Floated Elements
----------------------------------------------------------------------------------------------------*/
/* http://sonspring.com/journal/clearing-floats */
.clear {
clear: both;
display: block;
overflow: hidden;
visibility: hidden;
width: 0;
height: 0;
}
/* http://perishablepress.com/press/2008/02/05/lessons-learned-concerning-the-clearfix-css-hack */
.clearfix:after {
clear: both;
content: ' ';
display: block;
font-size: 0;
line-height: 0;
visibility: hidden;
width: 0;
height: 0;
}
.clearfix {
display: inline-block;
}
* html .clearfix {
height: 1%;
}
.clearfix {
display: block;
}
/* forms.css */

View File

@ -2,7 +2,7 @@
#topic_app_index{
position:absolute;
top:50px;
top:40px;
left:0px;
right:0px;
bottom:0px;
@ -113,6 +113,12 @@
.note_file{
margin:8px 0px;
.icon{
height:20px;
position:relative;
top:4px;
}
}
.note_file_queue{
@ -128,33 +134,29 @@
}
}
.note_file_form{
float:right;
.fileupload{
.add_file{
background:black;
color:white;
padding:5px 10px;
position:absolute;
right:10px;
top:5px;
}
.progress{
position:absolute;
right:10px;
top:30px;
}
input[type=file]{
display:none;
}
label{
color: #17b;
cursor:pointer;
&:hover, &:active {
color: #39e;
background-color: none;
outline: none; }
&:link, &:visited, &:hover {
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease; }
&:active {
color: #b41;
-webkit-transition: none;
-moz-transition: none;
-o-transition: none;
transition: none; }
}
}

View File

@ -11,6 +11,7 @@
<script src="/ace_editor/ace-uncompressed-noconflict.js" type="text/javascript" charset="utf-8"></script>
= csrf_meta_tag
%style=Pygments.css('.highlight')
=javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false&region=FR"
@ -30,13 +31,19 @@
#breadcrumb
=image_tag (current_admin.file? ? current_admin.file.square.url : ""), :class => "avatar", :style => "width:30px; border-radius:50%;"
=link_to "Dashboard", "/admin"
=link_to "Se déconnecter", destroy_admin_session_path, :class => "logout_link"
.personnal
=image_tag (current_admin.file? ? current_admin.file.square.url : ""), :class => "avatar"
%span
=current_admin.firstname
=current_admin.name
.menu
=link_to "Se déconnecter", destroy_admin_session_path, :class => "logout_link"
%nav
=link_to "Dashboard", "/admin"
= yield

View File

@ -1,4 +1,8 @@
%form.fileupload{:action => note_files_path(:note_id => note.id), :enctype => "multipart/form-data", :method => "POST"}
%button.add_file ajouter des fichiers
%input{:multiple => "", :name => "files[]", :type => "file", :style => "float:right;"}

View File

@ -1,4 +1,6 @@
.note_file#note_file{:id => note_file.id}
-ext = File.extname(note_file.file.path)[1..-1]
=image_tag "admin/file_types/"+ext+".png", :class => "icon"
=l note_file.created_at, :format => :short
=note_file.name
=link_to "supprimer", note_file_path(note_file), :remote => true, :method => :delete, :confirm => "Voulez-vous vraiment supprimer ce fichier ?"

View File

@ -1,5 +1,5 @@
#note_form
%p ```
= form_for @note, :remote => true do |f|
=f.hidden_field :topic_id