Commit aea037ec472524911f2c7994c4041863019e1ecd

Fix static file path issue
  • Diff rendering mode:
  • inline
  • side by side

mouchak/static/js/models.js

83 }83 }
84 }84 }
85 else if(this.get('src').match(/\.css/)) {85 else if(this.get('src').match(/\.css/)) {
86 console.log('css plugin found.. <'+ this.get('src')+'> loading it..');
86 var link = document.createElement('link');87 var link = document.createElement('link');
87 link.rel = 'stylesheet';88 link.rel = 'stylesheet';
88 link.href = this.get('src');89 link.href = this.get('src');

mouchak/templates/editor.html

1212
13 <!-- Place favicon.ico in the root directory -->13 <!-- Place favicon.ico in the root directory -->
1414
15 <link rel="stylesheet" href="/static/css/normalize.css">
16 <link rel="stylesheet" href="/static/css/bootstrap.css">
17 <link rel="stylesheet" href="/static/css/editor.css">
18 <script src="/static/js/lib/modernizr-2.6.1.min.js"></script>
15 <link rel="stylesheet" href="{{url_for('static', filename='css/normalize.css')}}">
16 <link rel="stylesheet" href="{{url_for('static', filename='css/bootstrap.css')}}">
17 <link rel="stylesheet" href="{{url_for('static', filename='css/editor.css')}}">
18 <script src="{{url_for('static', filename='js/lib/modernizr-2.6.1.min.js')}}"></script>
19 </head>19 </head>
20 <body>20 <body>
21 <!--[if lt IE 7]>21 <!--[if lt IE 7]>
44 };44 };
45 </script>45 </script>
46 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>46 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
47 <script>window.jQuery || document.write('<script src="/static/js/lib/jquery-1.8.0.min.js"><\/script>')</script>
48 <script src="/static/js/lib/underscore.js"></script>
49 <script src="/static/js/lib/backbone-1.0.0.js"></script>
50 <script src="/static/js/lib/bootstrap.js"></script>
51 <script src="/static/js/lib/tinymce/tinymce.min.js"></script>
52 <script src="/static/js/lib/tinymce/jquery.tinymce.min.js"></script>
53 <script src="/static/js/plugins.js"></script>
54 <script src="/static/js/mouchak.js"></script>
55 <script src="/static/js/models.js"></script>
56 <script src="/static/js/editor.js"></script>
47 <script>window.jQuery || document.write('<script src="{{url_for('static', filename='js/lib/jquery-1.8.0.min.js')}}"><\/script>')</script>
48 <script src="{{url_for('static', filename='js/lib/underscore.js')}}"></script>
49 <script src="{{url_for('static', filename='js/lib/backbone-1.0.0.js')}}"></script>
50 <script src="{{url_for('static', filename='js/lib/bootstrap.js')}}"></script>
51 <script src="{{url_for('static', filename='js/lib/tinymce/tinymce.min.js')}}"></script>
52 <script src="{{url_for('static', filename='js/lib/tinymce/jquery.tinymce.min.js')}}"></script>
53 <script src="{{url_for('static', filename='js/plugins.js')}}"></script>
54 <script src="{{url_for('static', filename='js/mouchak.js')}}"></script>
55 <script src="{{url_for('static', filename='js/models.js')}}"></script>
56 <script src="{{url_for('static', filename='js/editor.js')}}"></script>
5757
58 <!-- Underscore templates -->58 <!-- Underscore templates -->
59 <script type="text/template" id="menu-config-template">59 <script type="text/template" id="menu-config-template">

mouchak/templates/index.html

1212
13 <!-- Place favicon.ico in the root directory -->13 <!-- Place favicon.ico in the root directory -->
1414
15 <link rel="stylesheet" href="/static/css/normalize.css">
16 <link rel="stylesheet" href="/static/css/bootstrap.css">
17 <link rel="stylesheet" href="/static/css/mouchak.css">
18 <link rel="stylesheet" href="/static/css/main.css">
19 <script src="/static/js/lib/modernizr-2.6.1.min.js"></script>
15 <link rel="stylesheet" href="{{url_for('static', filename='css/normalize.css')}}">
16 <link rel="stylesheet" href="{{url_for('static', filename='css/bootstrap.css'}}">
17 <link rel="stylesheet" href="{{url_for('static', filename='css/mouchak.css')}}">
18 <link rel="stylesheet" href="{{url_for('static', filename='css/main.css')}}">
19 <script src="{{url_for('static', filename='js/lib/modernizr-2.6.1.min.js')}}"></script>
20 </head>20 </head>
21 <body>21 <body>
22 <!--[if lt IE 7]>22 <!--[if lt IE 7]>
40 };40 };
41 </script>41 </script>
42 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>42 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
43 <script>window.jQuery || document.write('<script src="/static/js/lib/jquery-1.8.0.min.js"><\/script>')</script>
44 <script src="/static/js/lib/underscore.js"></script>
45 <script src="/static/js/lib/backbone-1.0.0.js"></script>
46 <script src="/static/js/lib/bootstrap.js"></script>
47 <script src="/static/js/plugins.js"></script>
48 <script src="/static/js/mouchak.js"></script>
49 <script src="/static/js/models.js"></script>
50 <script src="/static/js/views.js"></script>
43 <script>window.jQuery || document.write('<script src="{{url_for('static', filename='js/lib/jquery-1.8.0.min.js')}}"><\/script>')</script>
44 <script src="{{url_for('static', filename='js/lib/underscore.js')}}"></script>
45 <script src="{{url_for('static', filename='js/lib/backbone-1.0.0.js')}}"></script>
46 <script src="{{url_for('static', filename='js/lib/bootstrap.js')}}"></script>
47 <script src="{{url_for('static', filename='js/plugins.js')}}"></script>
48 <script src="{{url_for('static', filename='js/mouchak.js')}}"></script>
49 <script src="{{url_for('static', filename='js/models.js')}}"></script>
50 <script src="{{url_for('static', filename='js/views.js')}}"></script>
5151
52 <!-- Underscore templates -->52 <!-- Underscore templates -->
53 <script type="text/template" id="news-template">53 <script type="text/template" id="news-template">

mouchak/templates/login.html

1212
13 <!-- Place favicon.ico in the root directory -->13 <!-- Place favicon.ico in the root directory -->
1414
15 <link rel="stylesheet" href="/static/css/normalize.css">
16 <link rel="stylesheet" href="/static/css/bootstrap.css">
15 <link rel="stylesheet" href="{{url_for('static', filename='css/normalize.css')}}">
16 <link rel="stylesheet" href="{{url_for('static', filename='css/bootstrap.css')}}">
17 <style type="text/css">17 <style type="text/css">
18 .form-wrapper {18 .form-wrapper {
19 height: 300px;19 height: 300px;