Commit 6fab43b1 authored by Luc Didry's avatar Luc Didry
Browse files

Fixes #8 - Add markdown code to copy/paste

parent 2f7b2f5f
......@@ -284,7 +284,7 @@ sub startup {
}
);
$self->asset('index.css' => 'css/bootstrap.min.css', 'css/fontello-embedded.css', 'css/animation.css', 'css/uploader.css', 'css/hennypenny.css', 'css/lutim.css');
$self->asset('index.css' => 'css/bootstrap.min.css', 'css/fontello-embedded.css', 'css/animation.css', 'css/uploader.css', 'css/hennypenny.css', 'css/lutim.css', 'css/markdown.css');
$self->asset('stats.css' => 'css/bootstrap.min.css', 'css/fontello-embedded.css', 'css/morris-0.4.3.min.css', 'css/hennypenny.css', 'css/lutim.css');
$self->asset('about.css' => 'css/bootstrap.min.css', 'css/fontello-embedded.css', 'css/hennypenny.css', 'css/lutim.css');
......
@font-face {
font-family: 'markdown';
src:url('../font/markdown.eot?-6fnbp5');
src:url('../font/markdown.eot?#iefix-6fnbp5') format('embedded-opentype'),
url('../font/markdown.woff?-6fnbp5') format('woff'),
url('../font/markdown.ttf?-6fnbp5') format('truetype'),
url('../font/markdown.svg?-6fnbp5#markdown') format('svg');
font-weight: normal;
font-style: normal;
}
[class^="markdown-"], [class*=" markdown-"] {
font-family: 'markdown';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.markdown-mark:before {
content: "\e600";
}
.markdown-mark-solid:before {
content: "\e601";
}
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>
<json>
{
"fontFamily": "markdown",
"majorVersion": 1,
"minorVersion": 0,
"fontURL": "https://github.com/dcurtis/markdown-mark",
"designer": "Dustin Curtis",
"designerURL": "http://twitter.com/dcurtis",
"license": "CC0 UNIVERSAL PUBLIC DOMAIN DEDICATION LICENSE",
"licenseURL": "https://raw.githubusercontent.com/dcurtis/markdown-mark/master/LICENSE",
"version": "Version 1.0",
"fontId": "markdown",
"psName": "markdown",
"subFamily": "Regular",
"fullName": "markdown",
"description": "Generated by IcoMoon"
}
</json>
</metadata>
<defs>
<font id="markdown" horiz-adv-x="512">
<font-face units-per-em="512" ascent="480" descent="-32" />
<missing-glyph horiz-adv-x="512" />
<glyph unicode="&#x20;" d="" horiz-adv-x="256" />
<glyph unicode="&#xe600;" d="M120 88v272h80l80-100 80 100h80v-272h-80v156l-80-100-80 100v-156h-80zM620 88l-120 132h80v140h80v-140h80l-120-132zM0 428.021v-408.042c0-28.714 23.299-51.979 52.029-51.979h727.943c28.727 0 52.029 23.266 52.029 51.979v408.042c0 28.714-23.299 51.979-52.029 51.979h-727.943c-28.727 0-52.029-23.266-52.029-51.979zM779.971 440c6.651 0 12.029-5.369 12.029-11.979v-408.042c0-6.608-5.379-11.979-12.029-11.979h-727.943c-6.651 0-12.029 5.369-12.029 11.979v408.042c0 6.608 5.379 11.979 12.029 11.979h727.943z" horiz-adv-x="832" />
<glyph unicode="&#xe601;" d="M0 428.021v-408.042c0-28.714 23.299-51.979 52.029-51.979h727.943c28.727 0 52.029 23.266 52.029 51.979v408.042c0 28.714-23.299 51.979-52.029 51.979h-727.943c-28.727 0-52.029-23.266-52.029-51.979zM120 88v272h80l80-100 80 100h80v-272h-80v156l-80-100-80 100v-156h-80zM620 88l-120 132h80v140h80v-140h80l-120-132z" horiz-adv-x="832" />
</font></defs></svg>
\ No newline at end of file
......@@ -20,10 +20,11 @@
&nbsp;&nbsp;&nbsp;<a title="<%= l('Tweet it!') %>" target="_blank" href="https://twitter.com/share?url=<%= $url %>?t"><span class="icon icon-twitter"></span></a>
<ul class="list-unstyled">
% my $delete_url = url_for('delete', {short => stash('real_short'), token => stash('token')})->to_abs();
<li><i class="icon icon-eye" title =" <%= l('View link') %>"></i> <%= link_to $url => begin %> <%= $url %> <%= end %></li>
<li><i class="icon icon-download" title =" <%= l('Download link') %>"></i> <%= link_to $url.'?dl' => begin %> <%= $url.'?dl' %> <%= end %></li>
<li><i class="icon icon-share" title =" <%= l('Link for share on social networks') %>"></i> <%= link_to $url.'?t' => begin %> <%= $url.'?t' %> <%= end %></li>
<li><i class="icon icon-trash" title =" <%= l('Deletion link') %>"></i> <%= link_to $delete_url => begin %> <%= $delete_url %> <%= end %></li>
<li><i class="icon icon-eye" title =" <%= l('View link') %>"></i> <%= link_to $url => begin %> <%= $url %> <%= end %></li>
<li><i class="markdown-mark-solid" title =" <%= l('Markdown syntax') %>"></i> ![](<%= $url %>)</li>
<li><i class="icon icon-download" title =" <%= l('Download link') %>"></i> <%= link_to $url.'?dl' => begin %> <%= $url.'?dl' %> <%= end %></li>
<li><i class="icon icon-share" title =" <%= l('Link for share on social networks') %>"></i> <%= link_to $url.'?t' => begin %> <%= $url.'?t' %> <%= end %></li>
<li><i class="icon icon-trash" title =" <%= l('Deletion link') %>"></i> <%= link_to $delete_url => begin %> <%= $delete_url %> <%= end %></li>
</ul>
</div>
% # Delay modification form
......
......@@ -59,6 +59,7 @@
+tw_url(msg.short)
+'<ul class="list-unstyled"><li><i class="icon icon-eye" title="<%= l('View link') %>"></i>&nbsp;'
+link(msg.short, '')
+'</li><li><i class="markdown-mark-solid" title="<%= l('Markdown syntax') %>"></i>&nbsp;![](<%== url_for('/')->to_abs() %>'+msg.short+')'
+'</li><li><i class="icon icon-download" title="<%= l('Download link') %>"></i>&nbsp;'
+link(msg.short, 'dl')
+'</li><li><i class="icon icon-share" title="<%= l('Link for share on social networks') %>"></i>&nbsp;'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment