Sha256: 0590954d5fef44c0ff20b32d7acafc25a8d0a7ee166d065f2442a01e879d9347

Contents?: true

Size: 1.85 KB

Versions: 3

Compression:

Stored size: 1.85 KB

Contents

<div class="ui left vertical inverted visible sidebar menu">

	<a class="item" href="<%= url '/' %>">
		<span><i class="home icon"></i> Home</span>
	</a>

	<% @cache[:schemas].each do |schema, data| %>

		<div class="js-submenu link item">
			<span><i class="database icon"></i> <%= schema %></span>
			<i class="caret right icon"></i>
			<i class="caret down icon transition hidden"></i>
		</div>

		<div class="menu transition hidden">

			<div class="subheader">Schema</div>
			<a class="item" href="<%= url "/schemas/#{schema}" %>"><span><i class="database icon"></i> <%= schema %></span></a>

			<% unless data[:tables].empty? %>
				<div class="subheader">Tables</div>
				<% data[:tables].each do |table_name, table| %>
					<a class="item" href="<%= url "/schemas/#{schema}/tables/#{table_name}" %>"><span><i class="table icon"></i> <%= table_name %></span></a>
				<% end %>
			<% end %>

			<% unless data[:views].empty? %>
				<div class="subheader">Views</div>
				<% data[:views].each do |view_name, view| %>
					<a class="item" href="<%= url "/schemas/#{schema}/views/#{view_name}" %>"><span><i class="table icon"></i> <%= view_name %></span></a>
				<% end %>
			<% end %>

			<% unless data[:functions].empty? %>
				<div class="subheader">Functions</div>
				<% data[:functions].each do |routine_name, routine| %>
					<a class="item" href="<%= url "/schemas/#{schema}/functions/#{routine_name}" %>"><span><i class="code icon"></i> <%= routine_name %></span></a>
				<% end %>
			<% end %>

			<% unless data[:triggers].empty? %>
				<div class="subheader">Triggers</div>
				<% data[:triggers].each do |routine_name, routine| %>
					<a class="item" href="<%= url "/schemas/#{schema}/triggers/#{routine_name}" %>"><span><i class="lightning icon"></i> <%= routine_name %></span></a>
				<% end %>
			<% end %>

		</div>

	<% end %>

	<div class="scroll-padding"></div>

</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pg-doc-0.0.4 views/includes/left_menu.erb
pg-doc-0.0.3 views/includes/left_menu.erb
pg-doc-0.0.2 views/includes/left_menu.erb