Skip to content

Commit

Permalink
Fixed styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ogom committed Sep 16, 2014
1 parent 358481c commit e2c5759
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Draw ERD
# DrawERD

[![Gem Version](https://badge.fury.io/rb/draw_erd.png)](https://rubygems.org/gems/draw_erd) [![Build Status](https://travis-ci.org/ogom/draw_erd.png?branch=master)](https://travis-ci.org/ogom/draw_erd)

Expand Down Expand Up @@ -26,9 +26,9 @@ Add this line to your `config/routes.rb`:
mount DrawErd::Engine, at: '/rails/draw/erd'
```

Draw by selecting the schemas:
Draw by selecting the models:

![example_erd](http://ogom.github.io/draw_erd/assets/img/example_erd.png)
![example](http://ogom.github.io/draw_erd/assets/img/example.png)

## Use

Expand Down
4 changes: 3 additions & 1 deletion app/assets/stylesheets/draw_erd/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ input.bottom {
}

div.schemas {
padding-top: 18px;
float:left;
padding-top: 36px;
padding-bottom: 20px;
border-right: solid #eee;
}
7 changes: 2 additions & 5 deletions app/views/draw_erd/diagram/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<h2>Schemas</h2>
<h2>Models</h2>
<p>Drawing the Entity-Relationship Diagram</p>

<div class='schemas'>
<%= form_tag({}, method: :get, name: 'form_schema') do %>
<table id='schema_table' class='schema_table'>
<thead>
<tr>
<th>Schema</th>
</tr>
<tr class='bottom'>
<tr class='bottom'>
<th>
<%= submit_tag :draw, class: 'bottom' %>
</th>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/draw_erd/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Schemas</title>
<title>Models</title>
<%= stylesheet_link_tag "draw_erd/application", media: "all" %>
<%= javascript_include_tag "draw_erd/application" %>
<%= csrf_meta_tags %>
Expand Down
2 changes: 1 addition & 1 deletion lib/draw_erd/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module DrawErd
VERSION = '0.1.1'.freeze
VERSION = '0.1.2'.freeze
end

0 comments on commit e2c5759

Please sign in to comment.