Sha256: 4fe92dd8b9d9874fe84a94dedacfa9dc1c8e59cc0ede66f7cab4d9f3544a627e

Contents?: true

Size: 1.34 KB

Versions: 11

Compression:

Stored size: 1.34 KB

Contents

#{@pager}
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript">
  function change_style(name){
    $('link')[1].href = '/css/' + name + '.css';
    $('pre')[0].className = name;
    $.get( '/save_theme/' + name );
  }
</script>
<div id="paste">
  <div id="paste_head">
    <a id="toggle_meta" onclick="javascript:$('#paste_meta').toggle();" href="#">
      <span class="toggle_button">-</span>
    </a>
    <ul id="paste_meta">
      <li id="meta_syntax">Syntax: #{@syntax}</li>
      <li id="meta_created">Created: #{time_diff(@paste.created)} ago</li>
      <li id="meta_toggle_lines"><a onclick="javascript:$('span.line-numbers').toggle();" href="#">Toggle line numbers</a></li>
      <li id="meta_change_style">
        <form>
          Theme:
          <select onchange="change_style(this.value);" name="style" id="select_style">
            <?r Uv.themes.each do |theme| ?>
              <option value="#{theme}"#{theme == @style ? ' selected' : ''}>#{theme.capitalize.tr('_', ' ')}</option>
            <?r end ?>
          </select>
        </form>
      </li>
      <ul id="meta_menu">
        <li><a href="/copy/#{@paste.id}">Copy</a></li>
        <li><a href="/#{@paste.id}">HTML</a></li>
        <li><a href="/#{@paste.id}.txt">Plain</a></li>
      </ul>
    </ul>
  </div>
  <div id="paste_body">#@formatted</div>
</div>

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
Pistos-ramaze-2008.09 examples/app/rapaste/view/view.xhtml
clivecrous-ramaze-0.3.9.5 examples/rapaste/view/view.xhtml
manveru-ramaze-2008.07 examples/app/rapaste/view/view.xhtml
manveru-ramaze-2008.08 examples/app/rapaste/view/view.xhtml
manveru-ramaze-2008.09 examples/app/rapaste/view/view.xhtml
ramaze-0.3.0 examples/rapaste/template/view.xhtml
ramaze-0.3.5 examples/rapaste/view/view.xhtml
ramaze-2008.11 examples/app/rapaste/view/view.xhtml
ramaze-0.3.9 examples/rapaste/view/view.xhtml
ramaze-2008.06 examples/app/rapaste/view/view.xhtml
ramaze-0.3.9.1 examples/rapaste/view/view.xhtml