First commit
This commit is contained in:
commit
664842d309
57 changed files with 49647 additions and 0 deletions
52
templates/about.phtml
Normal file
52
templates/about.phtml
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<%inherit file="home.phtml"/>
|
||||
<%block name="content">
|
||||
<div align="center" style="padding-top:40px;min-height:90vh;">
|
||||
<img src="${make_media_url('images/logo.png', 'cuchulublog')}" />
|
||||
<h1>About</h1>
|
||||
<section>
|
||||
<p><strong>Antonio de la Rosa Caballero</strong></p>
|
||||
<p style="max-width:500px;">${lang('cuchulublog', 'geek_enthusiast_linux_user', 'Geek enthusiast. Linux user, <strong>Debian user, Archlinux user, Gentoo user, Fedora user</strong>. <strong>Free software supporter</strong>. Specialized in <strong>Linux</strong> sysadmin, backend, and frontend')}.</p>
|
||||
|
||||
<h2>${lang('cuchulublog', 'projects', 'Projects')}</h2>
|
||||
|
||||
<div class="yui-u">
|
||||
<h2>${lang('cuchulublog', 'all_repositories', 'All repositories')}</h2>
|
||||
<p>${lang('cuchulublog', 'new_and_old_repositories', 'New and old repositories with my software')}</p>
|
||||
<p><a href="https://bitbucket.org/paramecio/">Paramecio project</a></p>
|
||||
<p><a href="https://bitbucket.org/phangoapp/">Phango project</a></p>
|
||||
</div>
|
||||
<div class="yui-u">
|
||||
<h2>Paramecio</h2>
|
||||
<p style="max-width:500px;">${lang('cuchulublog', 'a_series_of_shortcuts', 'A series of shortcuts and libraries for Flask and Bottle, with ORM, Datetime shortcuts for Arrow library, templates shortcuts for Mako templates and more')}</p>
|
||||
<p><a href="https://bitbucket.org/paramecio/paramecio2fm/src/master/">Bitbucket GIT repository</a></p>
|
||||
</div>
|
||||
|
||||
<div class="yui-u">
|
||||
<h2>Pastarafi</h2>
|
||||
<p>${lang('cuchulublog', 'a_simple_tool_for_make', 'A simple tool for make tasks in remote linux servers. Similar to ansible')}.</p>
|
||||
<p><a href="https://bitbucket.org/paramecio/pastafari/src/master/">Bitbucket GIT repository</a></p>
|
||||
</div>
|
||||
|
||||
<div class="yui-u">
|
||||
<h2>Pastarafistats</h2>
|
||||
<p style="max-width:500px;">${lang('cuchulublog', 'a_simple_monit_tool_based_in_psutil', 'A simple monitoritation tool based in psutil and flask for monitoring servers. You can define webhooks for process events with tools how node-red')}</p>
|
||||
<p><a href="https://bitbucket.org/paramecio/pastafaristats/src/master/">Bitbucket GIT repository for daemon collector</a></p>
|
||||
<p><a href="https://bitbucket.org/paramecio/monit/src/master/">Bitbucket GIT repository for simple show of data</a></p>
|
||||
</div>
|
||||
|
||||
<div class="yui-u">
|
||||
<h2>PhaRouter2</h2>
|
||||
<p style="max-width:500px;">${lang('cuchulublog', 'simple_and_fast_framework', 'Simple and fast framework router based in php with modern technics how Composer, PSR-4 and more')}.</p>
|
||||
<p><a href="https://bitbucket.org/phangoapp/pharouter2/src/master/">Bitbucket GIT repository</a></p>
|
||||
</div>
|
||||
|
||||
<div class="yui-u">
|
||||
<h2>Phango Framework</h2>
|
||||
<p style="max-width:500px;">${lang('cuchulublog', 'a_mvc_framework_based_in_php', 'A MVC framework based in php modern technics how Composer, PSR-4 and more. Deprecated')}.</p>
|
||||
<p><a href="https://bitbucket.org/phangoapp/phango">Bitbucket GIT repository</a></p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</%block>
|
||||
<%block name="js_footer">
|
||||
</%block>
|
||||
26
templates/blog.phtml
Normal file
26
templates/blog.phtml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<%inherit file="home.phtml"/>
|
||||
<%block name="content">
|
||||
<div align="center" style="padding-top:40px;min-height:90vh;">
|
||||
<img src="${make_media_url('images/logo.png', 'cuchulublog')}" />
|
||||
<h1>${lang('cuchulublog', 'posts', 'Posts')}</h1>
|
||||
<section>
|
||||
% for post in posts:
|
||||
<h2 class="title_post">${post['title']}</h2>
|
||||
<article class="tpl_post">
|
||||
<header>
|
||||
<h1 class="blog_post_name"></h1>
|
||||
<p>${lang('cuchulublog', 'published', 'Published')}: <time pubdate="pubdate" class="date_post">${post['date']}</time></p>
|
||||
</header>
|
||||
<div class="content_post">
|
||||
${post['text']|n}
|
||||
</div>
|
||||
<footer>
|
||||
<p><a href="${url_for('.cuchulublog_blog', date=post['date'], slugify=post['slugify'], post_id=post['id'])}" class="url_post">${lang('cuchulublog', 'read_more', 'Read more')}</a></p>
|
||||
</footer>
|
||||
</article>
|
||||
% endfor
|
||||
</section>
|
||||
</div>
|
||||
</%block>
|
||||
<%block name="js_footer">
|
||||
</%block>
|
||||
41
templates/contact.phtml
Normal file
41
templates/contact.phtml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<%inherit file="home.phtml"/>
|
||||
<%block name="content">
|
||||
<div align="center" style="padding-top:40px;min-height:90vh;">
|
||||
<h1>${lang('cuchulublog', 'contact', 'Contact')}</h1>
|
||||
<div id="error_id" class="error" style="display:none;">${lang('cuchulublog', 'error_cannot_send_email', 'Error: no puedo enviar el email')}</div>
|
||||
<div class="cont">
|
||||
<form method="post" id="sendmail_form">
|
||||
<p>${lang('cuchulublog', 'fill_this_form_for_contact', 'Rellene este formulario para contactar')}.</p>
|
||||
<div class="form">
|
||||
<p><label>${lang('cuchulublog', 'name', 'Nombre')}*: </label><input type="text" id="nombre_field_form" class="" name="nombre" value=""> <span class="error" id="nombre_error"></span></p>
|
||||
<p><label>${lang('cuchulublog', 'email', 'Email')}*: </label><input type="text" id="email_field_form" class="" name="email" value=""> <span class="error" id="email_error"></span></p>
|
||||
<p><label>${lang('cuchulublog', 'subject', 'Subject')}*: </label><input type="text" id="asunto_field_form" class="" name="asunto" value=""> <span class="error" id="asunto_error"></span></p>
|
||||
<p><label>${lang('cuchulublog', 'text', 'Text')}*: </label> <p><textarea class="tinymce_editor" name="texto"></textarea></p>
|
||||
<span class="error" id="text_error"></span></p>
|
||||
</div>
|
||||
<p><div class="g-recaptcha" data-sitekey="6LcFDSgUAAAAANfNjQE_gRbra1F0TPeRRRAS4xNs" id="captcha_field_form"></div>
|
||||
<span class="error" id="captcha_error"></span></p>
|
||||
${csrf_token()|n}
|
||||
<p><button type="submit">${lang('cuchulublog', 'send_form', 'Send form')}</button></p>
|
||||
</form>
|
||||
<script src="https://www.google.com/recaptcha/api.js"></script>
|
||||
</div>
|
||||
<div id="success_sendmail" style="display:none;"><p>${lang('cuchulublog', 'email_sended_successfully', 'Se envió el email correctamente. Pronto nos pondremos en contacto')}.</p></div>
|
||||
</div>
|
||||
</%block>
|
||||
<%block name="js_footer">
|
||||
<script language="Javascript" src="${make_media_url('js/jsutils/posting2.js', 'cuchulublog')}"></script>
|
||||
<script language="javascript">
|
||||
|
||||
//var options={'url': "${url_for('.send_contact')}",
|
||||
var options={url: "${url_for('.send_contact')}", success: function(data) {
|
||||
|
||||
$('#sendmail_form').hide();
|
||||
$('#success_sendmail').show();
|
||||
|
||||
}, pre_callback: function () {}, loading: '#loading', upload: {}};
|
||||
|
||||
$('#sendmail_form').sendPost(options);
|
||||
|
||||
</script>
|
||||
</%block>
|
||||
7
templates/email/content_contact.phtml
Normal file
7
templates/email/content_contact.phtml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<h1>FORMULARIO DE CONTACTO</h1>
|
||||
<p>Nombre: ${nombre}</p>
|
||||
<p>E-mail: ${email}</p>
|
||||
<p>Asunto: ${asunto}</p>
|
||||
<p>Texto:
|
||||
<br /><br />
|
||||
${texto}</p>
|
||||
18
templates/email/email.phtml
Normal file
18
templates/email/email.phtml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<html>
|
||||
<body>
|
||||
<table style="border:solid #cdcdcd;border-width:1px" align="center" width="90%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="background-color:#008ce5;padding:15px" width="500px">
|
||||
<img src="${logo_url}" style="border: solid #000 1px;" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background-color:#fbfbfb;padding:15px">
|
||||
${text|n}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
154
templates/home.phtml
Normal file
154
templates/home.phtml
Normal file
|
|
@ -0,0 +1,154 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>${title}</title>
|
||||
|
||||
<!-- Google Font: Source Sans Pro -->
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,500,500italic&display=fallback">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Slab:300,400,400i,700&display=fallback">
|
||||
<!-- styles -->
|
||||
<!--<link href="${make_media_url('css/font-awesome.min.css', 'admin')}" rel="stylesheet" />-->
|
||||
<link href="${make_media_url('css/bootstrap/bootstrap-reboot.min.css', 'cuchulublog')}" rel="stylesheet" type="text/css"/>
|
||||
<!--<link href="${make_media_url('css/bootstrap/bootstrap-grid.min.css', 'cuchulublog')}" rel="stylesheet" type="text/css"/>-->
|
||||
<link href="${make_media_url('css/font-awesome.min.css', 'cuchulublog')}" rel="stylesheet" type="text/css"/>
|
||||
<link href="${make_media_url('css/layout.css', 'cuchulublog')}" rel="stylesheet" type="text/css"/>
|
||||
<link rel="icon" type="image/png" href="${make_media_url('images/logo.png', 'cuchulublog')}">
|
||||
<%block name="header_css">
|
||||
</%block>
|
||||
</head>
|
||||
<body>
|
||||
<div id="loading" style="position:fixed;top:0px;height:100vh;width:100%;border: solid #f00 0px;display:none;">
|
||||
<div style="display: flex;padding: 0px;align-items: center;justify-content: center;height:100vh;width:100%;">
|
||||
<i class="fa fa-refresh fa-spin fa-3x fa-fw" style="position:absolute;top:50%;"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container-top">
|
||||
<div class="container" style="background: #fbfbfb;border: solid #cbcbcb;border-width: 0px 1px;">
|
||||
<div class="column_left logo">
|
||||
<div class="center_flex" style="height:50px;font-size:24px;font-family:Open Sans;background: #253062;color: #fff;">
|
||||
Cuchulu.com
|
||||
</div>
|
||||
</div>
|
||||
<div class="column_content">
|
||||
<div class="right_flex header_nav">
|
||||
<nav id="nav_home">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="${url_for('.cuchulublog_home')}"><i class="fa fa-home" aria-hidden="true"></i> ${lang('cuchulublog', 'home', 'Home')}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="${url_for('.cuchulublog_projects')}"><i class="fa fa-globe" aria-hidden="true"></i> ${lang('cuchulublog', 'projects', 'Projects')}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="${url_for('.cuchulublog_all_posts')}"><i class="fa fa-comments" aria-hidden="true"></i> ${lang('cuchulublog', 'blog', 'Blog')}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="${url_for('.cuchulublog_contact')}"><i class="fa fa-envelope-o" aria-hidden="true"></i> ${lang('cuchulublog', 'contact', 'Contact')}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="${url_for('.cuchulublog_about')}"><i class="fa fa-info" aria-hidden="true"></i> ${lang('cuchulublog', 'about', 'About')}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content_home">
|
||||
<%block name="content">
|
||||
|
||||
<div align="center" style="padding-top:40px;">
|
||||
<img src="${make_media_url('images/logo.png', 'cuchulublog')}" />
|
||||
<h1>${lang('cuchulublog', 'welcome_to_cuchulu', 'Welcome to cuchulu.com!!!')}</h1>
|
||||
<p>
|
||||
${lang('cuchulublog', 'cuchulu_is_set_projects', 'Cuchulu.com is a set of projects of Antonio de la Rosa, a coder and Linux sysadmin from Spain.')}
|
||||
</p>
|
||||
<p>
|
||||
${lang('cuchulublog', 'you_can_find_multiple', 'You can find multiple utilities for Linux administration, cloud systems, monitoritation tools and more.')}
|
||||
</p>
|
||||
<p>
|
||||
${lang('cuchulublog', 'of_course_if_you_need', 'Of course, if you need Linux admin services, create an App or other computer enginering services, you can <a href="">contact me</a>.')|n}
|
||||
</p>
|
||||
<%include file="mantained_projects.phtml" />
|
||||
<section id="blog_section">
|
||||
<h2>${lang('cuchulublog', 'blog_last_posts', 'Blog - Last posts')}</h2>
|
||||
<article style="display:none;" class="tpl_post">
|
||||
<header>
|
||||
<h1 class="blog_post_name">Apple</h1>
|
||||
<p>${lang('cuchulublog', 'published', 'Published')}: <time pubdate="pubdate" class="date_post">09/10/2009</time></p>
|
||||
</header>
|
||||
<div class="content_post">
|
||||
</div>
|
||||
<footer>
|
||||
<!--<p><small>Licencia Creative Commons Reconocimiento-Compartir bajo la misma</small></p>-->
|
||||
<p><a href="#" class="url_post">${lang('cuchulublog', 'read_more', 'Read more')}</a></p>
|
||||
</footer>
|
||||
</article>
|
||||
<br clear="all" />
|
||||
</section>
|
||||
|
||||
</div>
|
||||
<!--<div class="column_left" id="nav_column_left">
|
||||
<nav id="nav_column">
|
||||
<ul>
|
||||
<li>Home</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>-->
|
||||
</%block>
|
||||
</div>
|
||||
<footer id="footer_page">
|
||||
© Antonio de la Rosa - <a href="#">About</a>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
<script language="Javascript" src="${make_media_url('js/jquery.min.js', 'admin')}"></script>
|
||||
<%block name="js_footer">
|
||||
<script>
|
||||
|
||||
<%
|
||||
|
||||
from paramecio2.libraries.i18n import I18n
|
||||
|
||||
lang_default=I18n.default_lang
|
||||
|
||||
%>
|
||||
|
||||
var lang_default="${lang_default}";
|
||||
|
||||
$.ajax({
|
||||
url: "${url_for('blog_app.get_last_posts')}",
|
||||
data: {},
|
||||
success: function (data) {
|
||||
|
||||
for(i in data) {
|
||||
|
||||
var tpl=$('.tpl_post').clone().appendTo('#blog_section');
|
||||
|
||||
tpl.removeClass('tpl_post');
|
||||
|
||||
tpl.attr('id', 'tpl_post_'+data[i].id);
|
||||
|
||||
tpl.find('.blog_post_name').html(JSON.parse(data[i].title)[lang_default]);
|
||||
tpl.find('.content_post').html(JSON.parse(data[i].lead)[lang_default]);
|
||||
|
||||
//console.log(data[i].date.replace(' 00:00:00', '').replace(/-/g, '/'));
|
||||
|
||||
var date_post=data[i].date.replace(' 00:00:00', '').replace(/-/g, '/');
|
||||
|
||||
tpl.find('.date_post').html(date_post);
|
||||
|
||||
tpl.find('.url_post').attr('href', '/blog/'+date_post+'/'+data[i].slugify+'/'+data[i].id);
|
||||
|
||||
tpl.show();
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
|
||||
</script>
|
||||
</%block>
|
||||
</body>
|
||||
</html>
|
||||
36
templates/mantained_projects.phtml
Normal file
36
templates/mantained_projects.phtml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<section>
|
||||
<h2>Mantained Projects</h2>
|
||||
<div class="column_50">
|
||||
<h3>Paramecio</h3>
|
||||
<div class="content_section content_section_left">
|
||||
<p>${lang('cuchulublog', 'a_simple_web_framework', 'A simple web framework with shorcuts and hooks for Flask, Mako templates, etc...')}</p>
|
||||
<p><a href="https://bitbucket.org/paramecio/paramecio2fm/">${lang('cuchulublog', 'git_repo', 'Git repository')}</a></p>
|
||||
<p><a href="https://bitbucket.org/paramecio/paramecio2fm/">${lang('cuchulublog', 'documentation', 'Documentation')}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column_50">
|
||||
<h3>PastafariStats Agent</h3>
|
||||
<div class="content_section content_section_right"">
|
||||
<p>${lang('cuchulublog', 'a_simple_monit_script_writed', 'A simple monitoritation script writed in Python for save systemd data from a server (Linux or Windows) in a MySQL database')}</p>
|
||||
<p><a href="https://bitbucket.org/paramecio/pastafaristats/">${lang('cuchulublog', 'git_repo', 'Git repository')}</a></p>
|
||||
<p><a href="https://bitbucket.org/paramecio/pastafaristats/">${lang('cuchulublog', 'documentation', 'Documentation')}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column_50">
|
||||
<h3>Pastafari Monit Viewer</h3>
|
||||
<div class="content_section content_section_left"">
|
||||
<p>${lang('cuchulublog', 'a_simple_representation_of_data', 'A simple representation of data from PastafariStats Agent data')}</p>
|
||||
<p><a href="https://bitbucket.org/paramecio/monit/">${lang('cuchulublog', 'git_repo', 'Git repository')}</a></p>
|
||||
<p><a href="https://bitbucket.org/paramecio/monit/">${lang('cuchulublog', 'documentation', 'Documentation')}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column_50">
|
||||
<h3>Leviathan control panel</h3>
|
||||
<div class="content_section content_section_right"">
|
||||
<p>${lang('cuchulublog', 'a_set_of_tools_for', 'A set of tools for control Linux servers')}</p>
|
||||
<p><a href="https://bitbucket.org/paramecio/leviathanapi/">${lang('cuchulublog', 'git_repo', 'Git repository')}</a></p>
|
||||
<p><a href="https://bitbucket.org/paramecio/leviathanapi/">${lang('cuchulublog', 'documentation', 'Documentation')}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<br clear="all" />
|
||||
49
templates/post.phtml
Normal file
49
templates/post.phtml
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<%inherit file="home.phtml"/>
|
||||
<%block name="content">
|
||||
<div align="center" style="padding-top:40px;min-height:90vh;">
|
||||
<h2 class="title_post"></h2>
|
||||
<article class="tpl_post">
|
||||
<header>
|
||||
<h1 class="blog_post_name"></h1>
|
||||
<p>${lang('cuchulublog', 'published', 'Published')}: <time pubdate="pubdate" class="date_post"></time></p>
|
||||
</header>
|
||||
<div class="content_post">
|
||||
</div>
|
||||
<footer>
|
||||
<p><a href="#" class="url_post">${lang('cuchulublog', 'permanent_link', 'Permanent link')}</a></p>
|
||||
</footer>
|
||||
</article>
|
||||
</div>
|
||||
</%block>
|
||||
<%block name="js_footer">
|
||||
<script>
|
||||
|
||||
<%
|
||||
|
||||
from paramecio2.libraries.i18n import I18n
|
||||
|
||||
lang_default=I18n.default_lang
|
||||
|
||||
%>
|
||||
|
||||
var lang_default="${lang_default}";
|
||||
|
||||
$.ajax({
|
||||
url: "${url_for('blog_app.get_post', post_id=post_id)}",
|
||||
data: {},
|
||||
success: function (data) {
|
||||
|
||||
$('.blog_post_name').html(JSON.parse(data.title)[lang_default]);
|
||||
|
||||
var date_post=data.date.replace(' 00:00:00', '').replace(/-/g, '/');
|
||||
|
||||
$('.date_post').html(date_post);
|
||||
|
||||
$('.content_post').html(JSON.parse(data.text)[lang_default]);
|
||||
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
|
||||
</script>
|
||||
</%block>
|
||||
21
templates/projects.phtml
Normal file
21
templates/projects.phtml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<%inherit file="home.phtml"/>
|
||||
<%block name="content">
|
||||
<div align="center" style="padding-top:40px;min-height:90vh;">
|
||||
<img src="${make_media_url('images/logo.png', 'cuchulublog')}" />
|
||||
<%include file="mantained_projects.phtml" />
|
||||
<section>
|
||||
<br />
|
||||
<h2>${lang('cuchulublog', 'legacy_projects', 'Legacy Projects')}</h2>
|
||||
<br />
|
||||
<div class="">
|
||||
<h3>${lang('cuchulublog', 'phangoapp_php_tools', 'PhangoApp php tools')}</h3>
|
||||
<div class="content_section content_section_right"">
|
||||
<p>${lang('cuchulublog', 'tools_for_php_devel', 'Tools for php development using modern techniques how Composer, PSR-4 for packaging and more...')}</p>
|
||||
<p><a href="https://bitbucket.org/phangoapp/">Git repository</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</%block>
|
||||
<%block name="js_footer">
|
||||
</%block>
|
||||
Loading…
Add table
Add a link
Reference in a new issue