diff --git a/README.md b/README.md index e1b2cd1398..ad03017fff 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,11 @@ ### [https://www.invoiceninja.com](https://www.invoiceninja.com) ### Introduction -Most online invoicing sites are expensive. They shouldn't be. The aim of this project is to provide a free, open-source alternative. Additionally, the hope is this codebase will serve as a sample site for Laravel as well as other JavaScript technologies. +Most online invoicing sites are expensive. They shouldn't be. The aim of this project is to provide a free, open-source alternative. Additionally, the hope is the codebase will serve as a sample site for Laravel as well as other JavaScript technologies. + +For updates follow [@invoiceninja](https://twitter.com/invoiceninja) and [@hillelcoren](https://twitter.com/hillelcoren) + +Site design by [kantorp-wegl.in](http://kantorp-wegl.in/) ### Features * Core application built using Laravel 4.1 @@ -15,7 +19,7 @@ Most online invoicing sites are expensive. They shouldn't be. The aim of this pr ### Steps to setup -If you plan on submitting changes it's best to fork the repo (https://help.github.com/articles/fork-a-repo), otherwise you can just checkout the code. +If you plan on submitting changes it's best to [fork the repo](https://help.github.com/articles/fork-a-repo), otherwise you can just checkout the code. git clone git@github.com:hillelcoren/invoice-ninja.git ninja cd ninja diff --git a/app/database/seeds/ConstantsSeeder.php b/app/database/seeds/ConstantsSeeder.php index 6ca39fcd2c..0e31b564c3 100755 --- a/app/database/seeds/ConstantsSeeder.php +++ b/app/database/seeds/ConstantsSeeder.php @@ -105,7 +105,7 @@ class ConstantsSeeder extends Seeder Industry::create(array('name' => 'Travel & Luxury')); Industry::create(array('name' => 'Other')); - Size::create(array('name' => '1 = 3')); + Size::create(array('name' => '1 - 3')); Size::create(array('name' => '4 - 10')); Size::create(array('name' => '11 - 50')); Size::create(array('name' => '51 - 100')); @@ -122,6 +122,7 @@ class ConstantsSeeder extends Seeder Currency::create(array('name' => 'US Dollar', 'code' => 'USD', 'symbol' => '$', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.')); Currency::create(array('name' => 'Pound Sterling', 'code' => 'GBP', 'symbol' => '£', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.')); Currency::create(array('name' => 'Euro', 'code' => 'EUR', 'symbol' => '€', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.')); + Currency::create(array('name' => 'Rand', 'code' => 'ZAR', 'symbol' => 'R', 'precision' => '2', 'thousand_separator' => ' ', 'decimal_separator' => '.')); DatetimeFormat::create(array('format' => 'd/M/Y g:i a', 'label' => '10/Mar/2013')); diff --git a/app/models/Client.php b/app/models/Client.php index 9458b43cc2..6e805023bf 100755 --- a/app/models/Client.php +++ b/app/models/Client.php @@ -162,7 +162,17 @@ class Client extends EntityModel return ''; } - return link_to($this->website, $this->website, array('target'=>'_blank')); + $link = $this->website; + $title = $this->website; + $prefix = 'http://'; + + if (strlen($link) > 7 && substr($link, 0, 7) === $prefix) { + $title = substr($title, 7); + } else { + $link = $prefix . $link; + } + + return link_to($link, $title, array('target'=>'_blank')); } public function getDateCreated() diff --git a/app/views/about_us.blade.php b/app/views/about_us.blade.php index f5efb7fdea..fe0f50bcbf 100644 --- a/app/views/about_us.blade.php +++ b/app/views/about_us.blade.php @@ -64,7 +64,7 @@
Free yourself from online invoicing platforms with high monthly fees and limited functionality. Being open source allows us fast app development, security audits by the open-course community, and we can keep it FREE!
+Free yourself from online invoicing platforms with high monthly fees and limited functionality. Being open source allows us fast app development, security audits by the open-course community, and we can keep it FREE!
Examples of dynamic invoice variables: