commit
158c950b78
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Settings><!--This file was automatically generated by Ruby plugin.
|
||||||
|
You are allowed to:
|
||||||
|
1. Reorder generators
|
||||||
|
2. Remove generators
|
||||||
|
3. Add installed generators
|
||||||
|
To add new installed generators automatically delete this file and reload the project.
|
||||||
|
--><GeneratorsGroup><Generator name="acts_as_taggable_on:migration" /><Generator name="assets" /><Generator name="controller" /><Generator name="generator" /><Generator name="helper" /><Generator name="integration_test" /><Generator name="jquery:install" /><Generator name="js:assets" /><Generator name="mailer" /><Generator name="migration" /><Generator name="model" /><Generator name="observer" /><Generator name="performance_test" /><Generator name="redmine_plugin" /><Generator name="redmine_plugin_controller" /><Generator name="redmine_plugin_model" /><Generator name="resource" /><Generator name="scaffold" /><Generator name="scaffold_controller" /><Generator name="seems_rateable:install" /><Generator name="session_migration" /><Generator name="task" /></GeneratorsGroup></Settings>
|
@ -0,0 +1 @@
|
|||||||
|
trustie2
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" project-jdk-name="ruby-1.9.3-p392" project-jdk-type="RUBY_SDK" />
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/trustie2.iml" filepath="$PROJECT_DIR$/.idea/trustie2.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,5 @@
|
|||||||
|
<component name="DependencyValidationManager">
|
||||||
|
<state>
|
||||||
|
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
|
||||||
|
</state>
|
||||||
|
</component>
|
@ -0,0 +1,65 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="RUBY_MODULE" version="4">
|
||||||
|
<component name="FacetManager">
|
||||||
|
<facet type="RailsFacetType" name="Ruby on Rails">
|
||||||
|
<configuration>
|
||||||
|
<RAILS_FACET_CONFIG_ID NAME="RAILS_FACET_SUPPORT_REMOVED" VALUE="false" />
|
||||||
|
<RAILS_FACET_CONFIG_ID NAME="RAILS_TESTS_SOURCES_PATCHED" VALUE="true" />
|
||||||
|
<RAILS_FACET_CONFIG_ID NAME="RAILS_FACET_APPLICATION_ROOT" VALUE="$MODULE_DIR$" />
|
||||||
|
</configuration>
|
||||||
|
</facet>
|
||||||
|
</component>
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="actionmailer (v3.2.13, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="actionpack (v3.2.13, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="activemodel (v3.2.13, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="activerecord (v3.2.13, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="activeresource (v3.2.13, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="activesupport (v3.2.13, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="acts-as-taggable-on (v2.4.1, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="arel (v3.0.2, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="builder (v3.0.0, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.4, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="coderay (v1.0.9, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="erubis (v2.7.0, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="fastercsv (v1.5.0, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="hike (v1.2.3, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="i18n (v0.6.1, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="journey (v1.0.4, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="jquery-rails (v2.0.3, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="json (v1.8.0, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="mail (v2.5.4, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="mime-types (v1.23, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="multi_json (v1.7.6, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="mysql2 (v0.3.11, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="net-ldap (v0.3.1, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="polyglot (v0.3.3, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="rack (v1.4.5, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="rack-cache (v1.2, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="rack-openid (v1.3.1, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="rack-ssl (v1.3.3, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="rack-test (v0.6.2, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="rails (v3.2.13, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="railties (v3.2.13, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="rake (v10.0.4, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="rdoc (v3.12.2, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="ruby-openid (v2.1.8, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="seems_rateable (v1.0.13, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="sprockets (v2.2.2, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="thor (v0.18.1, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="tilt (v1.4.1, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="treetop (v1.4.14, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="tzinfo (v0.3.37, ruby-1.9.3-p392) [gem]" level="application" />
|
||||||
|
</component>
|
||||||
|
<component name="RModuleSettingsStorage">
|
||||||
|
<LOAD_PATH number="0" />
|
||||||
|
<I18N_FOLDERS number="1" string0="$MODULE_DIR$/config/locales" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
|
|
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,989 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ChangeListManager">
|
||||||
|
<list default="true" id="f0f7990a-b942-4e60-b469-007d7d78469b" name="Default" comment="">
|
||||||
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/public/images/seems_rateable/bg_jRatingInfos.png" />
|
||||||
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/public/images/seems_rateable/small.png" />
|
||||||
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/public/images/seems_rateable/stars.png" />
|
||||||
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/public/javascripts/rateable/jRating.js" />
|
||||||
|
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/public/javascripts/rateable/rateable.js" />
|
||||||
|
<change type="DELETED" beforePath="F:\trustie2\Gemfile.lock" afterPath="" />
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/public/stylesheets/application.css" afterPath="$PROJECT_DIR$/public/stylesheets/application.css" />
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/views/layouts/base.html.erb" afterPath="$PROJECT_DIR$/app/views/layouts/base.html.erb" />
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/views/layouts/base_newcontest.html.erb" afterPath="$PROJECT_DIR$/app/views/layouts/base_newcontest.html.erb" />
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/views/softapplications/show.html.erb" afterPath="$PROJECT_DIR$/app/views/softapplications/show.html.erb" />
|
||||||
|
</list>
|
||||||
|
<ignored path="trustie2.iws" />
|
||||||
|
<ignored path=".idea/workspace.xml" />
|
||||||
|
<file path="/Dummy.txt" changelist="f0f7990a-b942-4e60-b469-007d7d78469b" time="1397789124683" ignored="false" />
|
||||||
|
<file path="/Gemfile" changelist="f0f7990a-b942-4e60-b469-007d7d78469b" time="1397785159103" ignored="false" />
|
||||||
|
<file path="/base_newcontest.html.erb" changelist="f0f7990a-b942-4e60-b469-007d7d78469b" time="1397791039994" ignored="false" />
|
||||||
|
<file path="/softapplication.rb" changelist="f0f7990a-b942-4e60-b469-007d7d78469b" time="1397786126323" ignored="false" />
|
||||||
|
<file path="/Ruby Console" changelist="f0f7990a-b942-4e60-b469-007d7d78469b" time="1397786089717" ignored="false" />
|
||||||
|
<file path="/show.html.erb" changelist="f0f7990a-b942-4e60-b469-007d7d78469b" time="1397791502413" ignored="false" />
|
||||||
|
<file path="/application_helper.rb" changelist="f0f7990a-b942-4e60-b469-007d7d78469b" time="1397786669038" ignored="false" />
|
||||||
|
<file path="/application.rb" changelist="f0f7990a-b942-4e60-b469-007d7d78469b" time="1397789619089" ignored="false" />
|
||||||
|
<file path="/jRating.js" changelist="f0f7990a-b942-4e60-b469-007d7d78469b" time="1397790931447" ignored="false" />
|
||||||
|
<option name="TRACKING_ENABLED" value="true" />
|
||||||
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||||
|
</component>
|
||||||
|
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
||||||
|
<component name="CreatePatchCommitExecutor">
|
||||||
|
<option name="PATCH_PATH" value="" />
|
||||||
|
</component>
|
||||||
|
<component name="DaemonCodeAnalyzer">
|
||||||
|
<disable_hints />
|
||||||
|
</component>
|
||||||
|
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
||||||
|
<component name="FileEditorManager">
|
||||||
|
<leaf>
|
||||||
|
<file leaf-file-name="softapplications_controller.rb" pinned="false" current="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/app/controllers/softapplications_controller.rb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="160" column="52" selection-start="5038" selection-end="5038" vertical-scroll-proportion="0.0">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="softapplication.rb" pinned="false" current="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/app/models/softapplication.rb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="0" column="6" selection-start="6" selection-end="6" vertical-scroll-proportion="0.0">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="show.html.erb" pinned="false" current="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/app/views/softapplications/show.html.erb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="37" column="76" selection-start="1213" selection-end="1213" vertical-scroll-proportion="-16.923077">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="20130806083151_create_seems_rateable_rates.rb" pinned="false" current="true" current-in-tab="true">
|
||||||
|
<entry file="file://$PROJECT_DIR$/db/migrate/20130806083151_create_seems_rateable_rates.rb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="1" column="83" selection-start="70" selection-end="70" vertical-scroll-proportion="0.030911902">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="base.html.erb" pinned="false" current="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/app/views/layouts/base.html.erb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="9" column="91" selection-start="368" selection-end="368" vertical-scroll-proportion="-6.923077">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="base_memos.html.erb" pinned="false" current="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/app/views/layouts/base_memos.html.erb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="15" column="55" selection-start="564" selection-end="615" vertical-scroll-proportion="-11.538462">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
</leaf>
|
||||||
|
</component>
|
||||||
|
<component name="FindManager">
|
||||||
|
<FindUsagesManager>
|
||||||
|
<setting name="OPEN_NEW_TAB" value="false" />
|
||||||
|
</FindUsagesManager>
|
||||||
|
</component>
|
||||||
|
<component name="Git.Settings">
|
||||||
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||||
|
</component>
|
||||||
|
<component name="GitLogSettings">
|
||||||
|
<option name="myDateState">
|
||||||
|
<MyDateState />
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="IdeDocumentHistory">
|
||||||
|
<option name="changedFiles">
|
||||||
|
<list>
|
||||||
|
<option value="$PROJECT_DIR$/Gemfile" />
|
||||||
|
<option value="$PROJECT_DIR$/public/javascripts/application.js" />
|
||||||
|
<option value="$PROJECT_DIR$/app/helpers/application_helper.rb" />
|
||||||
|
<option value="$PROJECT_DIR$/app/models/softapplication.rb" />
|
||||||
|
<option value="$PROJECT_DIR$/app/assets/javascripts/rateable/jRating.js.erb" />
|
||||||
|
<option value="$PROJECT_DIR$/config/application.rb" />
|
||||||
|
<option value="$PROJECT_DIR$/app/assets/javascripts/rateable/rateable.js.erb" />
|
||||||
|
<option value="$PROJECT_DIR$/public/javascripts/rateable/rateable.js" />
|
||||||
|
<option value="$PROJECT_DIR$/public/stylesheets/application.css" />
|
||||||
|
<option value="$PROJECT_DIR$/public/javascripts/rateable/jRating.js" />
|
||||||
|
<option value="$PROJECT_DIR$/app/views/layouts/base_newcontest.html.erb" />
|
||||||
|
<option value="$PROJECT_DIR$/app/views/layouts/base.html.erb" />
|
||||||
|
<option value="$PROJECT_DIR$/app/controllers/softapplications_controller.rb" />
|
||||||
|
<option value="$PROJECT_DIR$/app/views/softapplications/show.html.erb" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="LogFilters">
|
||||||
|
<option name="FILTER_ERRORS" value="false" />
|
||||||
|
<option name="FILTER_WARNINGS" value="false" />
|
||||||
|
<option name="FILTER_INFO" value="true" />
|
||||||
|
<option name="FILTER_DEBUG" value="true" />
|
||||||
|
<option name="CUSTOM_FILTER" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectFrameBounds">
|
||||||
|
<option name="x" value="10" />
|
||||||
|
<option name="y" value="10" />
|
||||||
|
<option name="width" value="1420" />
|
||||||
|
<option name="height" value="860" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectInspectionProfilesVisibleTreeState">
|
||||||
|
<entry key="Project Default">
|
||||||
|
<profile-state>
|
||||||
|
<expanded-state>
|
||||||
|
<State>
|
||||||
|
<id />
|
||||||
|
</State>
|
||||||
|
<State>
|
||||||
|
<id>CSS</id>
|
||||||
|
</State>
|
||||||
|
<State>
|
||||||
|
<id>Code style issuesJavaScript</id>
|
||||||
|
</State>
|
||||||
|
<State>
|
||||||
|
<id>Control flow issuesJavaScript</id>
|
||||||
|
</State>
|
||||||
|
<State>
|
||||||
|
<id>JavaScript</id>
|
||||||
|
</State>
|
||||||
|
<State>
|
||||||
|
<id>JavaScript function metricsJavaScript</id>
|
||||||
|
</State>
|
||||||
|
<State>
|
||||||
|
<id>JavaScript validity issuesJavaScript</id>
|
||||||
|
</State>
|
||||||
|
<State>
|
||||||
|
<id>Potentially confusing code constructsJavaScript</id>
|
||||||
|
</State>
|
||||||
|
<State>
|
||||||
|
<id>Ruby</id>
|
||||||
|
</State>
|
||||||
|
<State>
|
||||||
|
<id>SQL</id>
|
||||||
|
</State>
|
||||||
|
</expanded-state>
|
||||||
|
<selected-state>
|
||||||
|
<State>
|
||||||
|
<id>CoffeeScript</id>
|
||||||
|
</State>
|
||||||
|
</selected-state>
|
||||||
|
</profile-state>
|
||||||
|
</entry>
|
||||||
|
</component>
|
||||||
|
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
||||||
|
<OptionsSetting value="true" id="Add" />
|
||||||
|
<OptionsSetting value="true" id="Remove" />
|
||||||
|
<OptionsSetting value="true" id="Checkout" />
|
||||||
|
<OptionsSetting value="true" id="Update" />
|
||||||
|
<OptionsSetting value="true" id="Status" />
|
||||||
|
<OptionsSetting value="true" id="Edit" />
|
||||||
|
<ConfirmationsSetting value="0" id="Add" />
|
||||||
|
<ConfirmationsSetting value="0" id="Remove" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectReloadState">
|
||||||
|
<option name="STATE" value="0" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectView">
|
||||||
|
<navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
|
||||||
|
<flattenPackages />
|
||||||
|
<showMembers />
|
||||||
|
<showModules />
|
||||||
|
<showLibraryContents />
|
||||||
|
<hideEmptyPackages />
|
||||||
|
<abbreviatePackageNames />
|
||||||
|
<autoscrollToSource />
|
||||||
|
<autoscrollFromSource />
|
||||||
|
<sortByType />
|
||||||
|
</navigator>
|
||||||
|
<panes>
|
||||||
|
<pane id="Scope" />
|
||||||
|
<pane id="ProjectPane">
|
||||||
|
<subPane>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="public" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="public" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="javascripts" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="public" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="javascripts" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="rateable" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="lib" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="lib" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="plugins" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="seems_rateable-master" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="lib" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="plugins" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="seems_rateable-master" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="app" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="lib" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="plugins" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="seems_rateable-master" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="app" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="assets" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="lib" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="plugins" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="seems_rateable-master" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="app" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="assets" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="images" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="seems_rateable" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="lib" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="plugins" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="db" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="db" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="migrate" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="config" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="trustie2" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="app" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
|
</subPane>
|
||||||
|
</pane>
|
||||||
|
<pane id="RailsProjectView" />
|
||||||
|
</panes>
|
||||||
|
</component>
|
||||||
|
<component name="PropertiesComponent">
|
||||||
|
<property name="options.splitter.main.proportions" value="0.3" />
|
||||||
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||||
|
<property name="options.lastSelected" value="editor.preferences.appearance" />
|
||||||
|
<property name="recentsLimit" value="5" />
|
||||||
|
<property name="GoToClass.includeJavaFiles" value="false" />
|
||||||
|
<property name="options.searchVisible" value="true" />
|
||||||
|
<property name="options.splitter.details.proportions" value="0.2" />
|
||||||
|
</component>
|
||||||
|
<component name="RecentsManager">
|
||||||
|
<key name="CopyFile.RECENT_KEYS">
|
||||||
|
<recent name="F:\trustie2\public\images" />
|
||||||
|
<recent name="F:\trustie2\public\javascripts" />
|
||||||
|
</key>
|
||||||
|
</component>
|
||||||
|
<component name="RunManager" selected="Rails.Development: trustie2">
|
||||||
|
<configuration default="false" name="Rails console: trustie2" type="IrbRunConfigurationType" factoryName="IRB console" temporary="true">
|
||||||
|
<module name="trustie2" />
|
||||||
|
<IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
||||||
|
<IRB_RUN_CONFIG NAME="WORK DIR" VALUE="$PROJECT_DIR$" />
|
||||||
|
<IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
||||||
|
<IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
||||||
|
<IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
||||||
|
<envs />
|
||||||
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
||||||
|
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
||||||
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
|
||||||
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
||||||
|
<IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$PROJECT_DIR$/script/rails" />
|
||||||
|
<IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="console development" />
|
||||||
|
<IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="true" />
|
||||||
|
<RunnerSettings RunnerId="RubyDebugRunner" />
|
||||||
|
<RunnerSettings RunnerId="RubyRunner" />
|
||||||
|
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
||||||
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="RakeRunConfigurationType" factoryName="Rake">
|
||||||
|
<module name="" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
||||||
|
<envs />
|
||||||
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
||||||
|
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
||||||
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
|
||||||
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE="" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="RailsRunConfigurationType" factoryName="Rails">
|
||||||
|
<predefined_log_file id="RUBY_RAILS_SERVER" enabled="true" />
|
||||||
|
<module name="" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
||||||
|
<envs />
|
||||||
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
||||||
|
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
||||||
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
|
||||||
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SCRIPT_ARGS" VALUE="" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="PORT" VALUE="3000" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="IP" VALUE="127.0.0.1" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="DUMMY_APP" VALUE="test/dummy" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RAILS_SERVER_TYPE" VALUE="Default" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ENVIRONMENT_TYPE" VALUE="development" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="LAUNCH_JS" VALUE="false" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
||||||
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
||||||
|
<module name="" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
||||||
|
<envs />
|
||||||
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
||||||
|
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
||||||
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
|
||||||
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
||||||
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
||||||
|
<module name="" />
|
||||||
|
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
||||||
|
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
||||||
|
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
||||||
|
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
||||||
|
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
||||||
|
<envs />
|
||||||
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
||||||
|
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
||||||
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
|
||||||
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
||||||
|
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
||||||
|
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
||||||
|
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
||||||
|
<module name="" />
|
||||||
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
||||||
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
||||||
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
||||||
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
||||||
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
||||||
|
<envs />
|
||||||
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
||||||
|
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
||||||
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
|
||||||
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
||||||
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
||||||
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
||||||
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
||||||
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
||||||
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
||||||
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
||||||
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="IrbRunConfigurationType" factoryName="IRB console">
|
||||||
|
<module name="" />
|
||||||
|
<IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
||||||
|
<IRB_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
||||||
|
<IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
||||||
|
<IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
||||||
|
<IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
||||||
|
<envs />
|
||||||
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
||||||
|
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
||||||
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
|
||||||
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
||||||
|
<IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
||||||
|
<IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
||||||
|
<IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="false" name="test" type="RakeRunConfigurationType" factoryName="Rake">
|
||||||
|
<module name="trustie2" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
||||||
|
<envs>
|
||||||
|
<env name="RAILS_ENV" value="test" />
|
||||||
|
</envs>
|
||||||
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
||||||
|
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
||||||
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
|
||||||
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="test" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE=":test_unit " />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="false" name="spec" type="RakeRunConfigurationType" factoryName="Rake">
|
||||||
|
<module name="trustie2" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
||||||
|
<envs />
|
||||||
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
||||||
|
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
||||||
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
|
||||||
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="spec" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE=":rspec " />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" />
|
||||||
|
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="false" name="Production: trustie2" type="RailsRunConfigurationType" factoryName="Rails">
|
||||||
|
<predefined_log_file id="RUBY_RAILS_SERVER" enabled="true" />
|
||||||
|
<module name="trustie2" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
||||||
|
<envs />
|
||||||
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
||||||
|
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
||||||
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
|
||||||
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SCRIPT_ARGS" VALUE="" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="PORT" VALUE="3000" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="IP" VALUE="127.0.0.1" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="DUMMY_APP" VALUE="test/dummy" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RAILS_SERVER_TYPE" VALUE="Default" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ENVIRONMENT_TYPE" VALUE="production" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="LAUNCH_JS" VALUE="false" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="false" name="Development: trustie2" type="RailsRunConfigurationType" factoryName="Rails">
|
||||||
|
<predefined_log_file id="RUBY_RAILS_SERVER" enabled="true" />
|
||||||
|
<module name="trustie2" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
||||||
|
<envs />
|
||||||
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
||||||
|
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
||||||
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
|
||||||
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SCRIPT_ARGS" VALUE="" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="PORT" VALUE="3000" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="IP" VALUE="127.0.0.1" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="DUMMY_APP" VALUE="test/dummy" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RAILS_SERVER_TYPE" VALUE="Default" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ENVIRONMENT_TYPE" VALUE="development" />
|
||||||
|
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="LAUNCH_JS" VALUE="false" />
|
||||||
|
<RunnerSettings RunnerId="RubyDebugRunner" />
|
||||||
|
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<list size="5">
|
||||||
|
<item index="0" class="java.lang.String" itemvalue="Rake.test" />
|
||||||
|
<item index="1" class="java.lang.String" itemvalue="Rake.spec" />
|
||||||
|
<item index="2" class="java.lang.String" itemvalue="Rails.Production: trustie2" />
|
||||||
|
<item index="3" class="java.lang.String" itemvalue="Rails.Development: trustie2" />
|
||||||
|
<item index="4" class="java.lang.String" itemvalue="IRB console.Rails console: trustie2" />
|
||||||
|
</list>
|
||||||
|
<recent_temporary>
|
||||||
|
<list size="3">
|
||||||
|
<item index="0" class="java.lang.String" itemvalue="IRB console.Rails console: trustie2" />
|
||||||
|
<item index="1" class="java.lang.String" itemvalue="IRB console.Rails console: trustie2" />
|
||||||
|
<item index="2" class="java.lang.String" itemvalue="IRB console.Rails console: trustie2" />
|
||||||
|
</list>
|
||||||
|
</recent_temporary>
|
||||||
|
</component>
|
||||||
|
<component name="ShelveChangesManager" show_recycled="false" />
|
||||||
|
<component name="SvnConfiguration" maxAnnotateRevisions="500" myUseAcceleration="nothing" myAutoUpdateAfterCommit="false" cleanupOnStartRun="false">
|
||||||
|
<option name="USER" value="" />
|
||||||
|
<option name="PASSWORD" value="" />
|
||||||
|
<option name="mySSHConnectionTimeout" value="30000" />
|
||||||
|
<option name="mySSHReadTimeout" value="30000" />
|
||||||
|
<option name="LAST_MERGED_REVISION" />
|
||||||
|
<option name="MERGE_DRY_RUN" value="false" />
|
||||||
|
<option name="MERGE_DIFF_USE_ANCESTRY" value="true" />
|
||||||
|
<option name="UPDATE_LOCK_ON_DEMAND" value="false" />
|
||||||
|
<option name="IGNORE_SPACES_IN_MERGE" value="false" />
|
||||||
|
<option name="DETECT_NESTED_COPIES" value="true" />
|
||||||
|
<option name="CHECK_NESTED_FOR_QUICK_MERGE" value="false" />
|
||||||
|
<option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />
|
||||||
|
<option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />
|
||||||
|
<option name="FORCE_UPDATE" value="false" />
|
||||||
|
<option name="IGNORE_EXTERNALS" value="false" />
|
||||||
|
<myIsUseDefaultProxy>false</myIsUseDefaultProxy>
|
||||||
|
</component>
|
||||||
|
<component name="TaskManager">
|
||||||
|
<task active="true" id="Default" summary="Default task">
|
||||||
|
<changelist id="f0f7990a-b942-4e60-b469-007d7d78469b" name="Default" comment="" />
|
||||||
|
<created>1397784941950</created>
|
||||||
|
<updated>1397784941950</updated>
|
||||||
|
</task>
|
||||||
|
<servers />
|
||||||
|
</component>
|
||||||
|
<component name="ToolWindowManager">
|
||||||
|
<frame x="10" y="10" width="1420" height="860" extended-state="0" />
|
||||||
|
<editor active="false" />
|
||||||
|
<layout>
|
||||||
|
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32904884" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.18657817" sideWeight="0.6709511" order="0" side_tool="false" content_ui="combo" />
|
||||||
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4125964" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32965517" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32904884" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32904884" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
||||||
|
</layout>
|
||||||
|
</component>
|
||||||
|
<component name="VcsContentAnnotationSettings">
|
||||||
|
<option name="myLimit" value="2678400000" />
|
||||||
|
</component>
|
||||||
|
<component name="VcsManagerConfiguration">
|
||||||
|
<option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
|
||||||
|
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
||||||
|
<option name="CHECK_NEW_TODO" value="true" />
|
||||||
|
<option name="myTodoPanelSettings">
|
||||||
|
<value>
|
||||||
|
<are-packages-shown value="false" />
|
||||||
|
<are-modules-shown value="false" />
|
||||||
|
<flatten-packages value="false" />
|
||||||
|
<is-autoscroll-to-source value="false" />
|
||||||
|
</value>
|
||||||
|
</option>
|
||||||
|
<option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
|
||||||
|
<option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
|
||||||
|
<option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
|
||||||
|
<option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
|
||||||
|
<option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
|
||||||
|
<option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
|
||||||
|
<option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
|
||||||
|
<option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
|
||||||
|
<option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
|
||||||
|
<option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
|
||||||
|
<option name="DEFAULT_PATCH_EXTENSION" value="patch" />
|
||||||
|
<option name="SHORT_DIFF_HORISONTALLY" value="true" />
|
||||||
|
<option name="SHORT_DIFF_EXTRA_LINES" value="2" />
|
||||||
|
<option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
|
||||||
|
<option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
|
||||||
|
<option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
|
||||||
|
<option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
|
||||||
|
<option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
|
||||||
|
<option name="SHOW_DIRTY_RECURSIVELY" value="false" />
|
||||||
|
<option name="LIMIT_HISTORY" value="true" />
|
||||||
|
<option name="MAXIMUM_HISTORY_ROWS" value="1000" />
|
||||||
|
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
||||||
|
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" />
|
||||||
|
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
|
||||||
|
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
||||||
|
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
|
||||||
|
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
|
||||||
|
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
|
||||||
|
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
|
||||||
|
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
|
||||||
|
<option name="ACTIVE_VCS_NAME" />
|
||||||
|
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
|
||||||
|
<option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
|
||||||
|
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
|
||||||
|
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
|
||||||
|
</component>
|
||||||
|
<component name="XDebuggerManager">
|
||||||
|
<breakpoint-manager />
|
||||||
|
</component>
|
||||||
|
<component name="editorHistoryManager">
|
||||||
|
<entry file="file://$PROJECT_DIR$/app/assets/javascripts/rateable/jRating.js.erb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="11" column="33" selection-start="586" selection-end="586" vertical-scroll-proportion="-5.8846154">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/app/assets/javascripts/rateable/rateable.js.erb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="13" column="16" selection-start="759" selection-end="759" vertical-scroll-proportion="-10.0">
|
||||||
|
<folding>
|
||||||
|
<marker date="1386903546872" expanded="false" signature="-1:-1" placeholder="..." />
|
||||||
|
<marker date="1386903546872" expanded="false" signature="-1:-1" placeholder="..." />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/public/application.css">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/public/stylesheets/application.css">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="2736" column="11" selection-start="75983" selection-end="75983" vertical-scroll-proportion="0.15730338">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/lib/plugins/seems_rateable-master/app/assets/stylesheets/seems_rateable/application.css">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="21" column="0" selection-start="662" selection-end="1345" vertical-scroll-proportion="0.28275862">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/lib/plugins/seems_rateable-master/app/assets/javascripts/seems_rateable/application.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="15" column="34" selection-start="599" selection-end="599" vertical-scroll-proportion="0.13793103">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/app/views/layouts/base_newcontest.html.erb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="11" column="8" selection-start="407" selection-end="490" vertical-scroll-proportion="-8.461538">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/public/javascripts/rateable/jRating.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="15" column="48" selection-start="801" selection-end="801" vertical-scroll-proportion="-11.538462">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/public/javascripts/rateable/rateable.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="5" column="68" selection-start="181" selection-end="181" vertical-scroll-proportion="0.13351135">
|
||||||
|
<folding>
|
||||||
|
<marker date="1397790439418" expanded="false" signature="-1:-1" placeholder="..." />
|
||||||
|
<marker date="1397790439418" expanded="false" signature="-1:-1" placeholder="..." />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/app/views/layouts/base_memos.html.erb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="15" column="55" selection-start="564" selection-end="615" vertical-scroll-proportion="-11.538462">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/app/views/layouts/base.html.erb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="9" column="91" selection-start="368" selection-end="368" vertical-scroll-proportion="-6.923077">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/app/models/softapplication.rb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="0" column="6" selection-start="6" selection-end="6" vertical-scroll-proportion="0.0">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/app/controllers/softapplications_controller.rb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="160" column="52" selection-start="5038" selection-end="5038" vertical-scroll-proportion="0.0">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/app/controllers/application_controller.rb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/app/views/softapplications/show.html.erb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="37" column="76" selection-start="1213" selection-end="1213" vertical-scroll-proportion="-16.923077">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/db/migrate/20130806083151_create_seems_rateable_rates.rb">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="1" column="83" selection-start="70" selection-end="70" vertical-scroll-proportion="0.030911902">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,2 @@
|
|||||||
|
// Place all the behaviors and hooks related to the matching controller here.
|
||||||
|
// All this logic will automatically be available in application.js.
|
@ -0,0 +1,4 @@
|
|||||||
|
/*
|
||||||
|
Place all the styles related to the matching controller here.
|
||||||
|
They will automatically be included in application.css.
|
||||||
|
*/
|
@ -0,0 +1,494 @@
|
|||||||
|
# fq
|
||||||
|
# class BidsController < ApplicationController
|
||||||
|
class ContestsController < ApplicationController
|
||||||
|
menu_item :respond
|
||||||
|
menu_item :project, :only => :show_project
|
||||||
|
menu_item :application, :only => :show_softapplication
|
||||||
|
before_filter :find_contest, :only => [:show_contest, :show_project, :show_softapplication, :create,:destroy,:more,:back,:add,:add_softapplication,:new,:show_results, :set_reward,
|
||||||
|
:show_contest_project, :show_contest_user, :join_in_contest, :unjoin_in_contest, :new_join,:show_participator, :settings]
|
||||||
|
|
||||||
|
# added by fq
|
||||||
|
before_filter :require_login, :only => [:join_in_contest, :unjoin_in_contest]
|
||||||
|
# end
|
||||||
|
before_filter :require_login,:only => [:set_reward, :destroy, :add, :new, ]
|
||||||
|
|
||||||
|
helper :watchers
|
||||||
|
helper :attachments
|
||||||
|
include AttachmentsHelper
|
||||||
|
include ApplicationHelper
|
||||||
|
helper :projects
|
||||||
|
helper :words
|
||||||
|
|
||||||
|
|
||||||
|
def index
|
||||||
|
# @contests = Contest.visible
|
||||||
|
# @contests ||= []
|
||||||
|
@offset, @limit = api_offset_and_limit({:limit => 10})
|
||||||
|
@contests = Contest.visible
|
||||||
|
@contests = @contests.like(params[:name]) if params[:name].present?
|
||||||
|
@contest_count = @contests.count
|
||||||
|
@contest_pages = Paginator.new @contest_count, @limit, params['page']
|
||||||
|
|
||||||
|
@offset ||= @contest_pages.reverse_offset
|
||||||
|
if params[:contest_sort_type].present?
|
||||||
|
case params[:contest_sort_type]
|
||||||
|
when '0'
|
||||||
|
unless @offset == 0
|
||||||
|
@contests = @contests.offset(@offset).limit(@limit).all.reverse
|
||||||
|
else
|
||||||
|
limit = @contest_count % @limit
|
||||||
|
limit = @limit if limit == 0
|
||||||
|
@contests = @contests.offset(@offset).limit(limit).all.reverse
|
||||||
|
end
|
||||||
|
@s_state = 0
|
||||||
|
when '1'
|
||||||
|
unless @offset == 0
|
||||||
|
@contests = @contests.reorder('contests.commit').offset(@offset).limit(@limit).all.reverse
|
||||||
|
else
|
||||||
|
limit = @contest_count % @limit
|
||||||
|
limit = @limit if limit == 0
|
||||||
|
@contests = @contests.reorder('contests.commit').offset(@offset).limit(limit).all.reverse
|
||||||
|
end
|
||||||
|
@s_state = 1
|
||||||
|
when '2'
|
||||||
|
unless @offset == 0
|
||||||
|
@contests = @contests.offset(@offset).limit(@limit).all.reverse
|
||||||
|
else
|
||||||
|
limit = @contest_count % @limit
|
||||||
|
limit = @limit if limit == 0
|
||||||
|
@contests = @contests.offset(@offset).limit(@limit).all.reverse
|
||||||
|
end
|
||||||
|
@s_state = 0
|
||||||
|
end
|
||||||
|
else
|
||||||
|
unless @offset == 0
|
||||||
|
@contests = @contests.reorder('contests.commit').offset(@offset).limit(@limit).all.reverse
|
||||||
|
else
|
||||||
|
limit = @contest_count % @limit
|
||||||
|
limit = @limit if limit == 0
|
||||||
|
@contests = @contests.reorder('contests.commit').offset(@offset).limit(limit).all.reverse
|
||||||
|
end
|
||||||
|
@s_state = 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def show_contest
|
||||||
|
@user = @contest.author
|
||||||
|
@jours = @contest.journals_for_messages.order('created_on DESC')
|
||||||
|
@limit = 10
|
||||||
|
@feedback_count = @jours.count
|
||||||
|
@feedback_pages = Paginator.new @feedback_count, @limit, params['page']
|
||||||
|
@offset ||= @feedback_pages.offset
|
||||||
|
@jour = @jours[@offset, @limit]
|
||||||
|
@state = false
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
layout_file = 'base_newcontest'
|
||||||
|
format.html {
|
||||||
|
render :layout => layout_file
|
||||||
|
}
|
||||||
|
format.api
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def join_in_contest
|
||||||
|
if params[:contest_password] == @contest.password
|
||||||
|
JoinInCompetition.create(:user_id => User.current.id, :competition_id => @contest.id)
|
||||||
|
@state = 0
|
||||||
|
else
|
||||||
|
@state = 1
|
||||||
|
end
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.js { render :partial => 'set_join', :locals => {:user => User.current, :object_id => params[:id]} }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def unjoin_in_contest
|
||||||
|
|
||||||
|
joined = JoinInCompetition.where('competition_id = ? and user_id = ?', @contest.id, User.current.id)
|
||||||
|
|
||||||
|
joined.each do |join|
|
||||||
|
join.delete
|
||||||
|
end
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.js { render :partial => 'set_join', :locals => {:user => User.current, :object_id => params[:id]} }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def new_join
|
||||||
|
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
def show_participator
|
||||||
|
render :layout => 'base_newcontest'
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
def settings
|
||||||
|
if @contest.author.id == User.current.id
|
||||||
|
@contest = Contest.find(params[:id])
|
||||||
|
render :layout => 'base_newcontest'
|
||||||
|
else
|
||||||
|
render_403 :message => :notice_not_contest_setting_authorized
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def show_contest_project
|
||||||
|
contests = Contest.where('parent_id = ?', @contest.id)
|
||||||
|
@projects = []
|
||||||
|
for contest in contests
|
||||||
|
@projects += contest.contesting_projects
|
||||||
|
end
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.html {
|
||||||
|
render :layout => 'base_newcontest'
|
||||||
|
}
|
||||||
|
format.api
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def show_contest_softapplication
|
||||||
|
contests = Contest.where('parent_id = ?', @contest.id)
|
||||||
|
@softapplications = []
|
||||||
|
for contest in contests
|
||||||
|
@softapplications += contest.contesting_softapplications
|
||||||
|
end
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.html {
|
||||||
|
render :layout => 'base_newcontest'
|
||||||
|
}
|
||||||
|
format.api
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def show_contest_user
|
||||||
|
contests = Contest.find(:all)
|
||||||
|
@users = []
|
||||||
|
for contest in contests
|
||||||
|
for project in contest.projects
|
||||||
|
@users += project.users
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.html {
|
||||||
|
render :layout => 'base_newcontest'
|
||||||
|
}
|
||||||
|
format.api
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
#显示参赛的项目
|
||||||
|
def show_project
|
||||||
|
@membership = User.current.memberships.all(:conditions => Project.visible_condition(User.current))
|
||||||
|
@option = []
|
||||||
|
# @contesting_project_count = @contesting_project_all.count
|
||||||
|
# @contesting_project_pages = Paginator.new @contesting_project_count, per_page_option, params['page']
|
||||||
|
@membership.each do |membership|
|
||||||
|
unless(membership.project.project_type==1)
|
||||||
|
membership.member_roles.each{|role|
|
||||||
|
if(role.role_id == 3)
|
||||||
|
@option << membership.project
|
||||||
|
end
|
||||||
|
}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
@user = @contest.author
|
||||||
|
@contesting_project = @contest.contesting_projects.all
|
||||||
|
if params[:student_id].present?
|
||||||
|
@temp = []
|
||||||
|
@contesting_project.each do |pro|
|
||||||
|
if pro.project && pro.project.project_status
|
||||||
|
if /#{params[:student_id]}/ =~ pro.user.user_extensions.student_id
|
||||||
|
@temp << pro
|
||||||
|
end
|
||||||
|
end
|
||||||
|
@temp
|
||||||
|
end
|
||||||
|
@contesting_project = @temp
|
||||||
|
else
|
||||||
|
|
||||||
|
@temp = []
|
||||||
|
@contesting_project.each do |pro|
|
||||||
|
if pro.project && pro.project.project_status
|
||||||
|
@temp << pro
|
||||||
|
end
|
||||||
|
@temp
|
||||||
|
end
|
||||||
|
if @temp.size > 0
|
||||||
|
@contesting_project = @temp.sort {|a,b| b.project.project_status.grade <=> a.project.project_status.grade}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
@contesting_project = paginateHelper @contesting_project
|
||||||
|
respond_to do |format|
|
||||||
|
format.html {
|
||||||
|
render :layout => 'base_newcontest'
|
||||||
|
}
|
||||||
|
format.api
|
||||||
|
end
|
||||||
|
end
|
||||||
|
############
|
||||||
|
##显示参赛的应用
|
||||||
|
def show_softapplication
|
||||||
|
# @membership = User.current.memberships.all(:conditions => Project.visible_condition(User.current))
|
||||||
|
# @option = []
|
||||||
|
|
||||||
|
# @user = @contest.user
|
||||||
|
@softapplication = Softapplication.all
|
||||||
|
@contesting_softapplication = @contest.contesting_softapplications
|
||||||
|
|
||||||
|
@contesting_softapplication = paginateHelper @contesting_softapplication, 10
|
||||||
|
|
||||||
|
# @temp = []
|
||||||
|
# @softapplicationt.each do |pro|
|
||||||
|
# if pro.project && pro.project.project_status
|
||||||
|
# @temp << pro
|
||||||
|
# end
|
||||||
|
# @temp
|
||||||
|
|
||||||
|
# if @temp.size > 0
|
||||||
|
# @contesting_project = @temp.sort {|a,b| b.project.project_status.grade <=> a.project.project_status.grade}
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
# respond_to do |format|
|
||||||
|
# format.html {
|
||||||
|
# render :layout => 'base_newcontest'
|
||||||
|
# }
|
||||||
|
# format.api
|
||||||
|
# end
|
||||||
|
##########################
|
||||||
|
@contest = Contest.find_by_id(params[:id])
|
||||||
|
respond_to do |format|
|
||||||
|
format.html {
|
||||||
|
render :layout => 'base_newcontest'
|
||||||
|
}
|
||||||
|
format.api
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
###添加已创建的参赛项目
|
||||||
|
def add
|
||||||
|
project = Project.find(params[:contest])
|
||||||
|
contest_message = params[:contest_for_save][:contest_message]
|
||||||
|
if ContestingProject.where("project_id = ? and contest_id = ?", project.id, @contest.id).size == 0
|
||||||
|
if ContestingProject.cerate_contesting(@contest.id, project.id, contest_message)
|
||||||
|
flash.now[:notice] = l(:label_bidding_contest_succeed)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
flash.now[:error] = l(:label_bidding_fail)
|
||||||
|
end
|
||||||
|
|
||||||
|
@contesting_project = paginateHelper @contest.contesting_projects
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
|
||||||
|
format.html { redirect_to :back }
|
||||||
|
format.js
|
||||||
|
end
|
||||||
|
end
|
||||||
|
###添加已发布的参赛应用
|
||||||
|
def add_softapplication
|
||||||
|
softapplication = Softapplication.find(params[:contest])
|
||||||
|
contest_message = params[:contest_for_save][:contest_message]
|
||||||
|
if ContestingSoftapplication.where("softapplication_id = ? and contest_id = ?", softapplication.id, @contest.id).size == 0
|
||||||
|
if ContestingSoftapplication.create_softapplication_contesting(@contest.id, softapplication.id, contest_message)
|
||||||
|
flash.now[:notice] = l(:label_release_add_contest_succeed)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
flash.now[:error] = l(:label_add_contest_succeed_fail)
|
||||||
|
end
|
||||||
|
|
||||||
|
@contesting_softapplication = paginateHelper @contest.contesting_softapplications
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
|
||||||
|
format.html { redirect_to :back }
|
||||||
|
format.js
|
||||||
|
end
|
||||||
|
end
|
||||||
|
## 新建留言
|
||||||
|
def create
|
||||||
|
|
||||||
|
if params[:contest_message][:message].size>0
|
||||||
|
if params[:reference_content]
|
||||||
|
message = params[:contest_message][:message] + "\n" + params[:reference_content]
|
||||||
|
else
|
||||||
|
message = params[:contest_message][:message]
|
||||||
|
end
|
||||||
|
refer_user_id = params[:contest_message][:reference_user_id].to_i
|
||||||
|
@contest.add_jour(User.current, message, refer_user_id)
|
||||||
|
end
|
||||||
|
@user = @contest.author
|
||||||
|
@jours = @contest.journals_for_messages.where('m_parent_id IS NULL').order('created_on DESC')
|
||||||
|
@limit = 10
|
||||||
|
@feedback_count = @jours.count
|
||||||
|
@feedback_pages = Paginator.new @feedback_count, @limit, params['page']
|
||||||
|
@offset ||= @feedback_pages.offset
|
||||||
|
@jour = @jours[@offset, @limit]
|
||||||
|
@contest.set_commit(@feedback_count)
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.js
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
##删除留言
|
||||||
|
def destroy
|
||||||
|
@user = @contest.author
|
||||||
|
if User.current.admin? || User.current.id == @user.id
|
||||||
|
JournalsForMessage.delete_message(params[:object_id])
|
||||||
|
end
|
||||||
|
@jours = @contest.journals_for_messages.reverse
|
||||||
|
@limit = 10
|
||||||
|
@feedback_count = @jours.count
|
||||||
|
@feedback_pages = Paginator.new @feedback_count, @limit, params['page']
|
||||||
|
@offset ||= @feedback_pages.offset
|
||||||
|
@jour = @jours[@offset, @limit]
|
||||||
|
|
||||||
|
@contest.set_commit(@feedback_count)
|
||||||
|
respond_to do |format|
|
||||||
|
format.js
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
##引用留言
|
||||||
|
def new
|
||||||
|
@jour = JournalsForMessage.find(params[:journal_id]) if params[:journal_id]
|
||||||
|
if @jour
|
||||||
|
user = @jour.user
|
||||||
|
text = @jour.notes
|
||||||
|
else
|
||||||
|
user = @contest.author
|
||||||
|
text = @contest.description
|
||||||
|
end
|
||||||
|
text = text.to_s.strip.gsub(%r{<pre>((.|\s)*?)</pre>}m, '[...]')
|
||||||
|
@content = "> #{ll(User.current.language, :text_user_wrote, user)}\n> "
|
||||||
|
@content << text.gsub(/(\r?\n|\r\n?)/, "\n> ") + "\n\n"
|
||||||
|
@id = user.id
|
||||||
|
rescue ActiveRecord::RecordNotFound
|
||||||
|
render_404
|
||||||
|
end
|
||||||
|
|
||||||
|
##新建竞赛
|
||||||
|
def new_contest
|
||||||
|
@contest = Contest.new
|
||||||
|
@contest.safe_attributes = params[:contest]
|
||||||
|
end
|
||||||
|
|
||||||
|
##提交创建的竞赛
|
||||||
|
def create_contest
|
||||||
|
@contest = Contest.new
|
||||||
|
@contest.name = params[:contest][:name]
|
||||||
|
@contest.description = params[:contest][:description]
|
||||||
|
@contest.budget = params[:contest][:budget]
|
||||||
|
@contest.deadline = params[:contest][:deadline]
|
||||||
|
@contest.password = params[:contest][:password]
|
||||||
|
@contest.author_id = User.current.id
|
||||||
|
@contest.commit = 0
|
||||||
|
if @contest.save
|
||||||
|
unless @contest.watched_by?(User.current)
|
||||||
|
if @contest.add_watcher(User.current)
|
||||||
|
flash[:notice] = l(:label_contesting_created_succeed)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
redirect_to show_contest_contest_path(@contest)
|
||||||
|
else
|
||||||
|
@contest.safe_attributes = params[:contest]
|
||||||
|
render :action => 'new_contest'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
##更新竞赛配置信息
|
||||||
|
def update_contest
|
||||||
|
@contest = Contest.find(params[:id])
|
||||||
|
@contest.name = params[:contest][:name]
|
||||||
|
@contest.description = params[:contest][:description]
|
||||||
|
|
||||||
|
@contest.budget = params[:contest][:budget]
|
||||||
|
@contest.deadline = params[:contest][:deadline]
|
||||||
|
@contest.password = params[:contest][:password]
|
||||||
|
@contest.author_id = User.current.id
|
||||||
|
@contest.commit = 0
|
||||||
|
if @contest.save
|
||||||
|
unless @contest.watched_by?(User.current)
|
||||||
|
if @contest.add_watcher(User.current)
|
||||||
|
flash[:notice] = l(:label_contesting_updated_succeed)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
redirect_to show_contest_contest_path(@contest)
|
||||||
|
|
||||||
|
else
|
||||||
|
@contest.safe_attributes = params[:contest]
|
||||||
|
render :action => 'new_contest'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def more
|
||||||
|
@jour = @contest.journals_for_messages
|
||||||
|
@jour.each_with_index {|j,i| j.indice = i+1}
|
||||||
|
@state = true
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.html { redirect_to :back }
|
||||||
|
format.js
|
||||||
|
#format.api { render_api_ok }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def back
|
||||||
|
@jour = @contest.journals_for_messages
|
||||||
|
@jour.each_with_index {|j,i| j.indice = i+1}
|
||||||
|
@state = false
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.html { redirect_to :back }
|
||||||
|
format.js
|
||||||
|
#format.api { render_api_ok }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def set_reward
|
||||||
|
@b_p = nil
|
||||||
|
@contesting_project_id = nil
|
||||||
|
|
||||||
|
if params[:set_reward][:reward]&&((User.current.id==@contest.author_id)||User.current.admin)
|
||||||
|
# @contest_id = params[:id]
|
||||||
|
@contesting_project_id = params[:set_reward][:b_id] #[:b_id]???
|
||||||
|
@b_p = ContestingProject.find_by_id(@contesting_project_id)
|
||||||
|
|
||||||
|
# 把字段存进表中
|
||||||
|
@b_p.update_reward(params[:set_reward][:reward].to_s)
|
||||||
|
end
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.js
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
def manage
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def find_contest
|
||||||
|
if params[:id]
|
||||||
|
@contest = Contest.find(params[:id])
|
||||||
|
@user = @contest.author
|
||||||
|
end
|
||||||
|
rescue
|
||||||
|
render_404
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
@ -0,0 +1,194 @@
|
|||||||
|
class SoftapplicationsController < ApplicationController
|
||||||
|
# GET /softapplications
|
||||||
|
# GET /softapplications.json
|
||||||
|
def index
|
||||||
|
@softapplications = Softapplication.all
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.html # index.html.erb
|
||||||
|
format.json { render json: @softapplications }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# GET /softapplications/1
|
||||||
|
# GET /softapplications/1.json
|
||||||
|
def show
|
||||||
|
@softapplication = Softapplication.find(params[:id])
|
||||||
|
@jours = @softapplication.journals_for_messages.order('created_on DESC')
|
||||||
|
@image_results = []
|
||||||
|
@softapplication.attachments.each do |f|
|
||||||
|
f.image? ? @image_results << f : @image_results
|
||||||
|
end
|
||||||
|
@app_items = []
|
||||||
|
@softapplication.attachments.each do |f|
|
||||||
|
f.pack? ? @app_items << f : @app_items
|
||||||
|
end
|
||||||
|
@limit = 10
|
||||||
|
@feedback_count = @jours.count
|
||||||
|
@feedback_pages = Paginator.new @feedback_count, @limit, params['page']
|
||||||
|
@offset ||= @feedback_pages.offset
|
||||||
|
@jour = @jours[@offset, @limit]
|
||||||
|
@state = false
|
||||||
|
respond_to do |format|
|
||||||
|
format.html # show.html.erb
|
||||||
|
format.json { render json: @softapplication }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# GET /softapplications/new
|
||||||
|
# GET /softapplications/new.json
|
||||||
|
def new
|
||||||
|
@softapplication = Softapplication.new
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.html # new.html.erb
|
||||||
|
format.json { render json: @softapplication }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# GET /softapplications/1/edit
|
||||||
|
def edit
|
||||||
|
@softapplication = Softapplication.find(params[:id])
|
||||||
|
end
|
||||||
|
|
||||||
|
# POST /softapplications
|
||||||
|
# POST /softapplications.json
|
||||||
|
def create
|
||||||
|
@softapplication = Softapplication.new(params[:softapplication])
|
||||||
|
@softapplication.user = User.current
|
||||||
|
@softapplication.save_attachments(params[:attachments])
|
||||||
|
respond_to do |format|
|
||||||
|
if @softapplication.save
|
||||||
|
format.html { redirect_to @softapplication, notice: 'Softapplication was successfully created.' }
|
||||||
|
format.json { render json: @softapplication, status: :created, location: @softapplication }
|
||||||
|
else
|
||||||
|
format.html { render action: "new" }
|
||||||
|
format.json { render json: @softapplication.errors, status: :unprocessable_entity }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# PUT /softapplications/1
|
||||||
|
# PUT /softapplications/1.json
|
||||||
|
def update
|
||||||
|
@softapplication = Softapplication.find(params[:id])
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
if @softapplication.update_attributes(params[:softapplication])
|
||||||
|
format.html { redirect_to @softapplication, notice: 'Softapplication was successfully updated.' }
|
||||||
|
format.json { head :no_content }
|
||||||
|
else
|
||||||
|
format.html { render action: "edit" }
|
||||||
|
format.json { render json: @softapplication.errors, status: :unprocessable_entity }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
def add_attach
|
||||||
|
@softapplication = Softapplication.find(params[:id])
|
||||||
|
@softapplication.save_attachments(params[:attachments])
|
||||||
|
end
|
||||||
|
|
||||||
|
# DELETE /softapplications/1
|
||||||
|
# DELETE /softapplications/1.json
|
||||||
|
def destroy
|
||||||
|
@softapplication = Softapplication.find(params[:id])
|
||||||
|
@softapplication.destroy
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.html { redirect_to softapplications_url }
|
||||||
|
format.json { head :no_content }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
#应用评价涉及到的方法
|
||||||
|
def new_message
|
||||||
|
@jour = JournalsForMessage.find(params[:journal_id]) if params[:journal_id]
|
||||||
|
if @jour
|
||||||
|
user = @jour.user
|
||||||
|
text = @jour.notes
|
||||||
|
else
|
||||||
|
user = @softapplication.user
|
||||||
|
text = @softapplication.description
|
||||||
|
end
|
||||||
|
text = text.to_s.strip.gsub(%r{<pre>((.|\s)*?)</pre>}m, '[...]')
|
||||||
|
@content = "> #{ll(User.current.language, :text_user_wrote, user)}\n> "
|
||||||
|
@content << text.gsub(/(\r?\n|\r\n?)/, "\n> ") + "\n\n"
|
||||||
|
@id = user.id
|
||||||
|
rescue ActiveRecord::RecordNotFound
|
||||||
|
render_404
|
||||||
|
end
|
||||||
|
#新建评价
|
||||||
|
def create_message
|
||||||
|
|
||||||
|
if params[:softapplication_message][:message].size>0
|
||||||
|
if params[:reference_content]
|
||||||
|
message = params[:softapplication_message][:message] + "\n" + params[:reference_content]
|
||||||
|
else
|
||||||
|
message = params[:softapplication_message][:message]
|
||||||
|
end
|
||||||
|
refer_user_id = params[:softapplication_message][:reference_user_id].to_i
|
||||||
|
@softapplication = Softapplication.find(params[:id])
|
||||||
|
@softapplication.add_jour(User.current, message, refer_user_id)
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
@user = @softapplication.user
|
||||||
|
@jours = @softapplication.journals_for_messages.where('m_parent_id IS NULL').order('created_on DESC')
|
||||||
|
|
||||||
|
@limit = 10
|
||||||
|
@feedback_count = @jours.count
|
||||||
|
@feedback_pages = Paginator.new @feedback_count, @limit, params['page']
|
||||||
|
@offset ||= @feedback_pages.offset
|
||||||
|
@jour = @jours[@offset, @limit]
|
||||||
|
#@softapplication.set_commit(@feedback_count)
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.js
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
##删除评价
|
||||||
|
def destroy_message
|
||||||
|
@user = @softapplication.user
|
||||||
|
if User.current.admin? || User.current.id == @user.id
|
||||||
|
JournalsForMessage.delete_message(params[:object_id])
|
||||||
|
end
|
||||||
|
@jours = @softapplication.journals_for_messages.reverse
|
||||||
|
@limit = 10
|
||||||
|
@feedback_count = @jours.count
|
||||||
|
@feedback_pages = Paginator.new @feedback_count, @limit, params['page']
|
||||||
|
@offset ||= @feedback_pages.offset
|
||||||
|
@jour = @jours[@offset, @limit]
|
||||||
|
|
||||||
|
@softapplication.set_commit(@feedback_count)
|
||||||
|
respond_to do |format|
|
||||||
|
format.js
|
||||||
|
end
|
||||||
|
end
|
||||||
|
#
|
||||||
|
def more
|
||||||
|
@jour = @softapplication.journals_for_messages
|
||||||
|
@jour.each_with_index {|j,i| j.indice = i+1}
|
||||||
|
@state = true
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.html { redirect_to :back }
|
||||||
|
format.js
|
||||||
|
#format.api { render_api_ok }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
#
|
||||||
|
def back
|
||||||
|
@jour = @softapplication.journals_for_messages
|
||||||
|
@jour.each_with_index {|j,i| j.indice = i+1}
|
||||||
|
@state = false
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.html { redirect_to :back }
|
||||||
|
format.js
|
||||||
|
#format.api { render_api_ok }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,2 @@
|
|||||||
|
module SoftapplicationsHelper
|
||||||
|
end
|
@ -0,0 +1,119 @@
|
|||||||
|
class Contest < ActiveRecord::Base
|
||||||
|
attr_accessible :author_id, :budget, :commit, :deadline, :description, :name, :password
|
||||||
|
include Redmine::SafeAttributes
|
||||||
|
|
||||||
|
belongs_to :author, :class_name => 'User', :foreign_key => :author_id
|
||||||
|
has_many :contesting_projects, :dependent => :destroy
|
||||||
|
has_many :projects, :through => :contesting_projects
|
||||||
|
has_many :contesting_softapplications, :dependent => :destroy
|
||||||
|
has_many :softapplications, :through => :contesting_softapplications
|
||||||
|
has_many :projects_member, :class_name => 'User', :through => :projects
|
||||||
|
has_many :journals_for_messages, :as => :jour, :dependent => :destroy
|
||||||
|
has_many :acts, :class_name => 'Activity', :as => :act, :dependent => :destroy
|
||||||
|
has_many :join_in_competitions, foreign_key: 'competition_id', :dependent => :destroy
|
||||||
|
has_many :join_in_contests, class_name: 'JoinInCompetition', foreign_key: 'competition_id', :dependent => :destroy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
acts_as_attachable
|
||||||
|
|
||||||
|
NAME_LENGTH_LIMIT = 60
|
||||||
|
DESCRIPTION_LENGTH_LIMIT = 250
|
||||||
|
|
||||||
|
validates_length_of :name, :maximum => NAME_LENGTH_LIMIT
|
||||||
|
validates_length_of :description, :maximum => DESCRIPTION_LENGTH_LIMIT
|
||||||
|
validates_presence_of :author_id, :name, :deadline
|
||||||
|
validates_format_of :deadline, :with => /^[\d]{4}[-][\d]{1,2}[-][\d]{1,2}$/
|
||||||
|
validates_format_of :budget, :with => /^(\d+)$|^(\d+).([0-9]{2})|^(\d+).([0-9]{1})$/
|
||||||
|
validate :validate_user
|
||||||
|
after_create :act_as_activity
|
||||||
|
|
||||||
|
scope :visible, lambda {|*args|
|
||||||
|
nil
|
||||||
|
}
|
||||||
|
|
||||||
|
scope :like, lambda {|arg|
|
||||||
|
if arg.blank?
|
||||||
|
where(nil)
|
||||||
|
else
|
||||||
|
pattern = "%#{arg.to_s.strip.downcase}%"
|
||||||
|
where("LOWER(id) LIKE :p OR LOWER(name) LIKE :p OR LOWER(description) LIKE :p", :p => pattern)
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
acts_as_watchable
|
||||||
|
acts_as_taggable
|
||||||
|
|
||||||
|
acts_as_event :title => Proc.new {|o| "#{l(:label_requirement)} ##{o.id}: #{o.name}" },
|
||||||
|
:description => :description,
|
||||||
|
:author => :author,
|
||||||
|
:url => Proc.new {|o| {:controller => 'contests', :action => 'show_contest', :id => o.id}}
|
||||||
|
|
||||||
|
acts_as_activity_provider :find_options => {:include => [:projects, :author]},
|
||||||
|
:author_key => :author_id
|
||||||
|
|
||||||
|
safe_attributes 'name',
|
||||||
|
'description',
|
||||||
|
'budget',
|
||||||
|
'deadline',
|
||||||
|
'password'
|
||||||
|
|
||||||
|
|
||||||
|
def add_jour(user, notes, reference_user_id = 0, options = {})
|
||||||
|
if options.count == 0
|
||||||
|
self.journals_for_messages << JournalsForMessage.new(:user_id => user.id, :notes => notes, :reply_id => reference_user_id)
|
||||||
|
else
|
||||||
|
jfm = self.journals_for_messages.build(options)
|
||||||
|
jfm.save
|
||||||
|
jfm
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.creat_contests(budget, deadline, name, description=nil)
|
||||||
|
self.create(:author_id => User.current.id, :budget => budget,
|
||||||
|
:deadline => deadline, :name => name, :description => description, :commit => 0)
|
||||||
|
end
|
||||||
|
|
||||||
|
def update_contests(budget, deadline, name, description=nil)
|
||||||
|
if(User.current.id == self.author_id)
|
||||||
|
self.name = name
|
||||||
|
self.budget = budget
|
||||||
|
self.deadline = deadline
|
||||||
|
self.description = description
|
||||||
|
self.save
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def delete_contests
|
||||||
|
unless self.nil?
|
||||||
|
if User.current.id == self.author_id
|
||||||
|
self.destroy
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def set_commit(commit)
|
||||||
|
self.update_attribute(:commit, commit)
|
||||||
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def validate_user
|
||||||
|
errors.add :author_id, :invalid if author.nil? || !author.active?
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
def act_as_activity
|
||||||
|
self.acts << Activity.new(:user_id => self.author_id)
|
||||||
|
end
|
||||||
|
|
||||||
|
def validate_contest_manager(user_id)
|
||||||
|
unless user_id.nil?
|
||||||
|
if self.author_id == user_id
|
||||||
|
return true
|
||||||
|
else
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,52 @@
|
|||||||
|
class ContestingProject < ActiveRecord::Base
|
||||||
|
attr_accessible :contest_id, :description, :project_id, :user_id, :reward
|
||||||
|
|
||||||
|
belongs_to :contest
|
||||||
|
belongs_to :project
|
||||||
|
belongs_to :user
|
||||||
|
|
||||||
|
DESCRIPTION_LENGTH_LIMIT = 500
|
||||||
|
|
||||||
|
validates_length_of :description, :maximum => DESCRIPTION_LENGTH_LIMIT
|
||||||
|
validates_presence_of :user_id, :contest_id, :project_id
|
||||||
|
validate :validate_user
|
||||||
|
validate :validate_contest
|
||||||
|
validate :validate_project
|
||||||
|
validates_uniqueness_of :contest_id, :scope => :project_id
|
||||||
|
|
||||||
|
def self.cerate_contesting(contest_id, project_id, description = nil)
|
||||||
|
self.create(:user_id => User.current.id, :contest_id => contest_id,
|
||||||
|
:project_id => project_id, :description => description)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
def update_reward(which)
|
||||||
|
self.update_attribute(:reward,which)
|
||||||
|
end
|
||||||
|
|
||||||
|
def get_reward
|
||||||
|
self.reward
|
||||||
|
end
|
||||||
|
|
||||||
|
def cancel_contesting
|
||||||
|
unless self.nil?
|
||||||
|
if User.current.id == self.user_id
|
||||||
|
self.destroy
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def validate_user
|
||||||
|
errors.add :user_id, :invalid if user.nil? || !user.active?
|
||||||
|
end
|
||||||
|
|
||||||
|
def validate_contest
|
||||||
|
errors.add :contest_id, :invalid if contest.nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
def validate_project
|
||||||
|
errors.add :project_id, :invalid if project.nil?
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
class ContestingSoftapplication < ActiveRecord::Base
|
||||||
|
attr_accessible :contest_id, :description, :softapplication_id, :user_id
|
||||||
|
|
||||||
|
belongs_to :contest
|
||||||
|
belongs_to :softapplication
|
||||||
|
belongs_to :user
|
||||||
|
|
||||||
|
|
||||||
|
def self.create_softapplication_contesting(contest_id, softapplication_id, description = nil)
|
||||||
|
self.create(:user_id => User.current.id, :contest_id => contest_id,
|
||||||
|
:softapplication_id => softapplication_id, :description => description)
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
@ -0,0 +1,10 @@
|
|||||||
|
# 新竞赛参加关系表
|
||||||
|
class JoinInCompetition < ActiveRecord::Base
|
||||||
|
attr_accessible :competition_id, :user_id
|
||||||
|
belongs_to :user, :class_name => "User", :foreign_key => :user_id
|
||||||
|
belongs_to :competition, :class_name => "Contest", :foreign_key => :competition_id
|
||||||
|
|
||||||
|
validates :user_id, presence: true
|
||||||
|
validates :competition_id, presence: true
|
||||||
|
|
||||||
|
end
|
@ -0,0 +1,24 @@
|
|||||||
|
class Softapplication < ActiveRecord::Base
|
||||||
|
attr_accessible :android_min_version_available, :app_type_id, :app_type_name, :description, :name, :user_id, :contest_id, :application_developers
|
||||||
|
acts_as_attachable
|
||||||
|
|
||||||
|
has_many :journals_for_messages, :as => :jour, :dependent => :destroy
|
||||||
|
has_many :contesting_softapplications, :dependent => :destroy
|
||||||
|
belongs_to :user
|
||||||
|
belongs_to :contest
|
||||||
|
|
||||||
|
def add_jour(user, notes, reference_user_id = 0, options = {})
|
||||||
|
if options.count == 0
|
||||||
|
self.journals_for_messages << JournalsForMessage.new(:user_id => user.id, :notes => notes, :reply_id => reference_user_id)
|
||||||
|
else
|
||||||
|
jfm = self.journals_for_messages.build(options)
|
||||||
|
jfm.save
|
||||||
|
jfm
|
||||||
|
end
|
||||||
|
end
|
||||||
|
def set_commit(commit)
|
||||||
|
self.update_attribute(:commit, commit)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
end
|
@ -0,0 +1,10 @@
|
|||||||
|
<!-- #wang -->
|
||||||
|
<% for attachment in attachments %><%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%>
|
||||||
|
<% if attachment.is_text? %>
|
||||||
|
<%= link_to image_tag('magnifier.png'),
|
||||||
|
:controller => 'attachments', :action => 'show',
|
||||||
|
:id => attachment, :filename => attachment.filename %>
|
||||||
|
<% end %>
|
||||||
|
<%= h(" - #{attachment.description}") unless attachment.description.blank? %>
|
||||||
|
<span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
|
||||||
|
<% end -%>
|
@ -0,0 +1,49 @@
|
|||||||
|
<!-- fq -->
|
||||||
|
<% contests.each do |contest|%>
|
||||||
|
<table width="95%" border="0" style="padding-left: 10px; padding-top: 10px;">
|
||||||
|
<tr>
|
||||||
|
<td colspan="2" valign="top" width="50" ><%= link_to(image_tag(url_to_avatar(contest.author), :class => 'avatar'), user_path(contest.author), :class => "avatar") %></td>
|
||||||
|
<td>
|
||||||
|
<table width="100%" border="0">
|
||||||
|
<tr>
|
||||||
|
<td colspan="2" valign="top"><strong><%= link_to(contest.author, user_path(contest.author), :class => 'bid_user') %>: <%= link_to(contest.name, show_contest_contest_path(contest), :class => 'bid_path') %></strong></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width="500">
|
||||||
|
<table border="0">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<strong><%= l(:label_contests_reward_method) %><span style="color: #15bccf;font-family: 14px; font-family: 微软雅黑"><%= contest.budget%></span></strong>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td><span class="font_lighter"><%= l(:label_contest_project, :count => contest.contesting_projects.count) %>(<strong><span style="font-size: 17px"><%= link_to(contest.contesting_projects.count, show_project_contest_path(contest)) %></span></strong>)</span>
|
||||||
|
<span class="font_lighter"><%= l(:label_contest_softapplication, :count => contest.contesting_softapplications.count) %>(<strong><span style="font-size: 17px"><%= link_to(contest.contesting_softapplications.count, show_softapplication_contest_path(contest)) %></span></strong>)</span>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table></td>
|
||||||
|
<td width="200" align="right" class="a"><span class="font_lighter"> <%= l :label_create_time %>: <%= format_time contest.created_on %></span></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="bid-description" style="border-left: 1px solid #d9d8d8; border-bottom: 1px solid #d9d8d8; padding-left: 20px; padding-bottom: 10px; margin-bottom: 20px;">
|
||||||
|
<table width="100%">
|
||||||
|
<tr>
|
||||||
|
<td> <%= contest.description%> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div></td>
|
||||||
|
</tr>
|
||||||
|
</table></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<% end %>
|
||||||
|
<div class="pagination">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
</div>
|
||||||
|
|
@ -0,0 +1,36 @@
|
|||||||
|
<!-- huang -->
|
||||||
|
<script type="text/javascript" language="javascript">
|
||||||
|
function show(id, id_t, label_reward, label_money, label_credit, label_content) {
|
||||||
|
var text = $('#' + id);
|
||||||
|
var text_t = $('#' + id_t);
|
||||||
|
if (text.val() == 0) {
|
||||||
|
text_t.attr("placeholder", label_reward);
|
||||||
|
}
|
||||||
|
if (text.val() == 1) {
|
||||||
|
text_t.attr("placeholder", label_money);
|
||||||
|
}
|
||||||
|
if (text.val() == 3) {
|
||||||
|
text_t.attr("placeholder", label_credit);
|
||||||
|
}
|
||||||
|
if (text.val() == 2) {
|
||||||
|
text_t.attr("placeholder", label_content);
|
||||||
|
}
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<%= error_messages_for 'contest' %>
|
||||||
|
<!--[form:project]-->
|
||||||
|
<p style="width:500px;"><%= l(:label_bids_form_contest_new_description) %></p>
|
||||||
|
<p><%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;", :maxlength => Contest::NAME_LENGTH_LIMIT, :placeholder => "#{l(:label_contest_name)}" %></p>
|
||||||
|
|
||||||
|
<p style="margin-left:-10px;padding-right: 20px;"><%= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;", :maxlength => Contest::DESCRIPTION_LENGTH_LIMIT, :placeholder => "#{l(:label_contest_description)}" %></p>
|
||||||
|
|
||||||
|
<p style="margin-left:-10px;"><%= f.text_field :password, :size => 60, :style => "width:488px;margin-left: 10px;" %></p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%= f.text_field :budget, :required => true, :size => 60, :style => "width:350px;", :placeholder => l(:label_bids_reward_what) %>
|
||||||
|
|
||||||
|
<!-- 设置奖项设置的打开 关闭开关-->
|
||||||
|
</p>
|
||||||
|
<!-- <em class="info" style="margin-left:95px;"><%= l(:text_contest_reward) %></em> -->
|
||||||
|
<p><%= f.text_field :deadline, :required => true, :size => 60, :style => "width:150px;", :placeholder => "#{l(:label_deadline)}" %><%= calendar_for('contest_deadline')%></p>
|
@ -0,0 +1,53 @@
|
|||||||
|
<% reply_allow = JournalsForMessage.create_by_user? User.current %>
|
||||||
|
<% tip1 = l(:label_user_response) %>
|
||||||
|
<p class="font_lighter" style="font-size: 15px; padding-left: 12px; "><%=tip1%></p>
|
||||||
|
|
||||||
|
<div id='leave-message'>
|
||||||
|
<%= render :partial => 'new', :locals => {:contest => @contest, :sta => @state} %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<% if journals.size >0 %>
|
||||||
|
<ul class="message-for-user">
|
||||||
|
<% for journal in journals%>
|
||||||
|
<li id='word_li_<%= journal.id.to_s %>' class="outer-message-for-user">
|
||||||
|
<span class="portrait"><%= image_tag(url_to_avatar(journal.user), :class => "avatar") %></span>
|
||||||
|
<span class="body">
|
||||||
|
<span class="user"><%= link_to journal.user, user_path(journal.user)%></span>
|
||||||
|
<span class="font_lighter"><% label = l(:label_contest_requirement) %></span>
|
||||||
|
<div> <%= textilizable journal.notes%> </div>
|
||||||
|
<span class="font_lighter"><%= l(:label_bids_published) %> <%= time_tag(journal.created_on).html_safe %> <%= l(:label_bids_published_ago) %></span>
|
||||||
|
|
||||||
|
<% ids = 'project_respond_form_'+ journal.id.to_s%>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<% if reply_allow %>
|
||||||
|
<%#= link_to(l(:button_quote), {:controller => 'contests', :action => 'new', :id => contest, :journal_id => journal}, :remote => true, :method => 'post', :title => l(:button_quote))%>
|
||||||
|
<%= link_to(l(:button_quote), contests_path(:id => contest, :journal_id => journal), :remote => true, :method => 'post', :title => l(:button_quote))%>
|
||||||
|
<%= link_to l(:label_bid_respond_quote),'',
|
||||||
|
{:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{ids}'), $('##{ids} textarea'), '#{l(:label_reply_plural)} #{journal.user.show_name}: '); $('##{ids} textarea') ;return false;"}%>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% if @user==User.current|| User.current.admin? %>
|
||||||
|
<%#= link_to(l(:label_bid_respond_delete), {:controller => 'bids', :action => 'destroy', :object_id => journal, :id => bid},:confirm => l(:label_delete_confirm),
|
||||||
|
:remote => true, :method => 'delete', :class => "delete", :confirm => l(:text_are_you_sure), :title => l(:button_delete)) %>
|
||||||
|
<%= link_to(l(:label_bid_respond_delete), {:controller => 'words', :action => 'destroy', :object_id => journal, :user_id => @user}, :remote => true, :confirm => l(:text_are_you_sure), :method => 'delete', :class => "delete", :title => l(:button_delete)) %>
|
||||||
|
<% end %>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<div style="clear: both;"></div>
|
||||||
|
<% ids = 'project_respond_form_'+ journal.id.to_s%>
|
||||||
|
<% if reply_allow %>
|
||||||
|
<div id='<%= ids %>' class="respond-form">
|
||||||
|
<%= render :partial => 'words/new_respond', :locals => {:journal => journal, :m_reply_id => journal} %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<div style="clear: both;"></div>
|
||||||
|
<div>
|
||||||
|
<%= render :partial => "words/journal_reply", :locals => {:journal => journal } %>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
<% end %>
|
@ -0,0 +1,103 @@
|
|||||||
|
|
||||||
|
<% contesting_project.each do |c_project|%>
|
||||||
|
<% if c_project.project %>
|
||||||
|
<table width="90%" border="0" align='center'>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<table width="660px" border="0" align='center'>
|
||||||
|
<tr>
|
||||||
|
<td width="50px" valign="top" colspan="2" align="middle">
|
||||||
|
<div style="width: 50px; height: 50px;">
|
||||||
|
<%= image_tag(url_to_avatar(c_project.project), :class => 'avatar3') %>
|
||||||
|
|
||||||
|
</div></td>
|
||||||
|
<td width="65%" valign="top">
|
||||||
|
<table width="100%" valign="top">
|
||||||
|
<tr>
|
||||||
|
<td colspan="2" valign="top" width="50%">
|
||||||
|
<strong>
|
||||||
|
<%= link_to(c_project.project.name, project_path(c_project.project)) %>
|
||||||
|
</strong>
|
||||||
|
<span class="font_lighter"><%= l(:label_joined_contest)%></span>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<!-- 如果需求到期 并且是该需求的管理员 -->
|
||||||
|
|
||||||
|
<td style="color: #ec6300;" align="right" valign="0.1em" width="16%">
|
||||||
|
<strong>
|
||||||
|
<span id="reward_result_<%=c_project.id%>"> <!-- 调用js进行刷新 -->
|
||||||
|
<%= l(:label_system_grade) %>:<%= (c_project.project.project_status.nil? ? 0.0 : c_project.project.project_status.grade) unless (c_project.project.project_status.nil? && c_project.project.nil?) %>
|
||||||
|
<% if get_prize(c_project).nil? or get_prize(c_project) == "" %>
|
||||||
|
<% if @contest.deadline < Date.today %>
|
||||||
|
<%= l(:label_noawards)%>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
|
||||||
|
<% case get_prize(c_project) %>
|
||||||
|
<% when '-1' %>
|
||||||
|
<%= image_tag("/images/bid/special_reward.png")%>
|
||||||
|
<% when '0' %>
|
||||||
|
<%= image_tag("/images/bid/first_reward.png")%>
|
||||||
|
<% when '1' %>
|
||||||
|
<%= image_tag("/images/bid/second_reward.png")%>
|
||||||
|
<% when '2' %>
|
||||||
|
<%= image_tag("/images/bid/third_reward.png")%>
|
||||||
|
<% when '3' %>
|
||||||
|
<%= image_tag("/images/bid/forth_reward.png")%>
|
||||||
|
<% when '4' %>
|
||||||
|
<%= image_tag("/images/bid/fifth_reward.png")%>
|
||||||
|
<% when '5' %>
|
||||||
|
<%= image_tag("/images/bid/qualified.png")%>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</span>
|
||||||
|
</strong>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<!-- 评价显隐控制按钮-->
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td valign="top" width="50%" style=" word-wrap: break-word; word-break: break-all"><%= c_project.project.description %></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td valign="top"><span class="font_lighter">
|
||||||
|
<%= format_time c_project.created_at%>
|
||||||
|
</span></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td width="30%">
|
||||||
|
<div class="bid-user-message" style="border-left: 1px solid rgb(225, 225, 225); margin-left: 20px; padding-left: 20px;">
|
||||||
|
<table width="100%">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<strong>
|
||||||
|
<%= l(:label_contest_user) %>
|
||||||
|
<% unless c_project.user.nil? %>
|
||||||
|
<%= c_project.user.lastname %><%= c_project.user.firstname %>
|
||||||
|
<% end %>
|
||||||
|
</strong>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style=" word-wrap: break-word; word-break: break-all">
|
||||||
|
<%= l(:label_contest_reason) %>
|
||||||
|
<%= c_project.description %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<div class="pagination"><%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %></div>
|
||||||
|
|
@ -0,0 +1,35 @@
|
|||||||
|
|
||||||
|
<% contesting_softapplication.each do |c_softapplication|%>
|
||||||
|
<% if c_softapplication.softapplication %>
|
||||||
|
<div style="padding-left: 18px">
|
||||||
|
<div style="font-size: 15px">
|
||||||
|
<tr>
|
||||||
|
<td><strong>应用软件:</strong></td>
|
||||||
|
<td>
|
||||||
|
<%= link_to(c_softapplication.softapplication.name, softapplication_path(c_softapplication.softapplication)) %>
|
||||||
|
</td>
|
||||||
|
</tr></br>
|
||||||
|
</div>
|
||||||
|
<div style="padding-left: 68px">
|
||||||
|
<tr>
|
||||||
|
<td>简介:</td>
|
||||||
|
<td>
|
||||||
|
<%= c_softapplication.softapplication.description %>
|
||||||
|
</td>
|
||||||
|
</tr></br>
|
||||||
|
</div>
|
||||||
|
<div style="padding-left: 68px; padding-bottom: 8px">
|
||||||
|
<tr>
|
||||||
|
<td>发布时间:</td>
|
||||||
|
<td>
|
||||||
|
<%=format_time c_softapplication.created_at %>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<div class="underline-contests_three"></div>
|
||||||
|
<% end %>
|
||||||
|
<div class="pagination"><%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %></div>
|
||||||
|
|
@ -0,0 +1,53 @@
|
|||||||
|
<!-- fq -->
|
||||||
|
<script type="text/javascript" language="javascript">
|
||||||
|
function clearInfo(id, content) {
|
||||||
|
var text = $('#' + id);
|
||||||
|
if (text.val() == content) {
|
||||||
|
$('#' + id).val('');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function showInfo(id, content) {
|
||||||
|
var text = $('#' + id);
|
||||||
|
if (text.val() == '') {
|
||||||
|
$('#' + id).val(content);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<%= form_for('contest_message',
|
||||||
|
:remote => true, :method => :post,
|
||||||
|
:url => {:controller => 'contests',
|
||||||
|
:action => 'create',
|
||||||
|
:id => contest,
|
||||||
|
:sta => sta}
|
||||||
|
) do |f|%>
|
||||||
|
|
||||||
|
<div id = 'pre_show'> <!--what function?-->
|
||||||
|
<%= render :partial => 'pre_show', :locals => {:content => @content} %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<% if User.current.logged? %>
|
||||||
|
<table border="0" width="525px" align="center" >
|
||||||
|
<tr>
|
||||||
|
<td><%= f.text_area 'message', :rows => 3, :cols => 65, :placeholder => l(:label_my_respond), :style => "resize: none;", :class => 'noline'%></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<%= f.text_field :reference_user_id, :style=>"display:none"%> <!--what function?-->
|
||||||
|
|
||||||
|
<!-- modified by bai -->
|
||||||
|
<table border="0" width="525px" align="center">
|
||||||
|
<tr>
|
||||||
|
<td align="right"> <%= submit_tag l(:button_leave_meassge), :name => nil , :class => "contest_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'"%>
|
||||||
|
<%= submit_tag l(:button_clear), :name => nil, :onclick => "clearMessage('contest_message_message');", :type => 'button', :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'" %> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<!-- end -->
|
||||||
|
<% else %>
|
||||||
|
<div style="font-size: 14px;margin:10px;">
|
||||||
|
<%= l(:label_user_login_tips) %>
|
||||||
|
<%= link_to l(:label_user_login_new), signin_path %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
@ -0,0 +1,57 @@
|
|||||||
|
<!-- added by fq -->
|
||||||
|
<style>
|
||||||
|
input[type="submit"].contest_btn {
|
||||||
|
vertical-align: middle;
|
||||||
|
width: 60px;/*modified by ming*/
|
||||||
|
height: 25px;
|
||||||
|
line-height: 19px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: rgb(0, 0, 0);
|
||||||
|
background: buttonface;/*url("/images/button/bg103.jpg") no-repeat scroll left top transparent;*/
|
||||||
|
padding: 0px 0px 4px 0px;
|
||||||
|
border-radius: 2px;
|
||||||
|
border: 1px solid rgb(148, 148, 148);
|
||||||
|
box-shadow: none;
|
||||||
|
text-shadow: none;
|
||||||
|
/*margin-top: -10px;*/
|
||||||
|
/*margin-right: -4px;*/
|
||||||
|
}
|
||||||
|
input[type="button"].contest_btn {
|
||||||
|
width: 60px;/*modified by ming*/
|
||||||
|
height: 25px;
|
||||||
|
line-height: 19px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: rgb(0, 0, 0);
|
||||||
|
background: buttonface;/*url("/images/button/bg103.jpg") no-repeat scroll left top transparent;*/
|
||||||
|
padding: 0px 0px 4px 0px;
|
||||||
|
border-radius: 2px;
|
||||||
|
border: 1px solid rgb(148, 148, 148);
|
||||||
|
box-shadow: none;
|
||||||
|
text-shadow: none;
|
||||||
|
/*margin-top: -10px;*/
|
||||||
|
margin-right: -2px;
|
||||||
|
}
|
||||||
|
textarea:focus {
|
||||||
|
border: #d5dee9 1px solid;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<h3 class="title">请输入竞赛密码</h3>
|
||||||
|
|
||||||
|
<%= form_tag( join_in_contest_contests_path(id: contest.id),
|
||||||
|
:remote => true,
|
||||||
|
:method => :post,
|
||||||
|
:id => 'new-watcher-form') do %>
|
||||||
|
<table border="0">
|
||||||
|
<tr>
|
||||||
|
<td align="cneter">
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<%= text_field_tag 'contest_password', nil, :size => 45 %>
|
||||||
|
|
||||||
|
<p class="buttons" style="padding-top: 10px; padding-bottom: 1px; margin-bottom: 1px">
|
||||||
|
<%= submit_tag l(:label_new_join), :name => nil, :class => "contest_btn", :onclick => "hideModal(this);" %>
|
||||||
|
<%= submit_tag l(:button_cancel), :name => nil, :class => "contest_btn", :onclick => "hideModal(this);", :type => 'button' %>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
<% end %>
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- fq -->
|
||||||
|
<% unless content.nil?%>
|
||||||
|
<table width="60%" style="margin-left: 60px;">
|
||||||
|
<tr>
|
||||||
|
<td> <%= textilizable content %></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><%= hidden_field_tag 'reference_content', params[:reference_content], :value => content%></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,15 @@
|
|||||||
|
<!-- fq -->
|
||||||
|
<%= render_flash_messages %>
|
||||||
|
|
||||||
|
<table width="100%" border="0" style="padding-left: 15px">
|
||||||
|
<td width="15%" class="font_lighter" style="font-size: 15px;"><%= l(:label_bidding_project) %>(<%= contesting_project.count%>)</td> <!--标注参与项目及数量-->
|
||||||
|
<% if User.current.logged? %>
|
||||||
|
<td width="85%">
|
||||||
|
<div class='icon icon-add'> <!--标注我要参加及添加图标-->
|
||||||
|
<%= toggle_link l(:button_contesting_as_project), 'put-bid-form' %>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<% end %>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<%= render :partial=> "list_projects",:locals => {:contesting_project => contesting_project,:contest => @contest }%>
|
@ -0,0 +1,8 @@
|
|||||||
|
$("#<%=object_id%>").replaceWith('<%= escape_javascript join_in_competition(@contest, user) %>');
|
||||||
|
<% if @state %>
|
||||||
|
<% if @state == 0 %>
|
||||||
|
alert("加入成功")
|
||||||
|
<% else %>
|
||||||
|
alert("密码错误")
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
@ -0,0 +1,15 @@
|
|||||||
|
<!-- fq -->
|
||||||
|
<%= render_flash_messages %>
|
||||||
|
|
||||||
|
<table width="100%" border="0" style="padding-left: 15px">
|
||||||
|
<td width="15%" class="font_lighter" style="font-size: 15px;"><%= l(:label_contest_softapplication) %>(<%= @contest.contesting_softapplications.count%>)</td> <!--标注参赛应用及数量-->
|
||||||
|
<% if User.current.logged? %>
|
||||||
|
<td width="85%">
|
||||||
|
<div class='icon icon-add'> <!--标注我要参加及添加图标-->
|
||||||
|
|
||||||
|
<%= link_to l(:button_contesting_as_application), "javascript:void(0);", onclick: "$('#put-bid-form').toggle();" %>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<% end %>
|
||||||
|
</table>
|
||||||
|
<%= render :partial=> "list_softapplications",:locals => {:contesting_softapplication => contesting_softapplication,:contest => @contest }%>
|
@ -0,0 +1,4 @@
|
|||||||
|
$('#contesting_project_list').html('<%= escape_javascript(render(:partial => 'project_list', :locals => {:contesting_project => @contesting_project})) %>');
|
||||||
|
$("#project_id").val("请选择项目");
|
||||||
|
$("#contest_message").val( "<%= l(:label_bid_reason) %>" );
|
||||||
|
$("#put-bid-form").hide();
|
@ -0,0 +1,4 @@
|
|||||||
|
$('#contesting_softapplication_list').html('<%= escape_javascript(render(:partial => 'softapplication_list', :locals => {:contesting_softapplication => @contesting_softapplication})) %>');
|
||||||
|
$("#softapplication_id").val("请选择参赛应用");
|
||||||
|
$("#contest_message").val( "<%= l(:label_bid_reason) %>" );
|
||||||
|
$("#put-bid-form").hide();
|
@ -0,0 +1,2 @@
|
|||||||
|
$('#history').html('<%= escape_javascript(render(:partial => 'history', :locals => {:contest => @contest, :journals => @jour, :state => @state})) %>');
|
||||||
|
$('#contest_message_reference_user_id').val("");
|
@ -0,0 +1,4 @@
|
|||||||
|
$('#history').html('<%= escape_javascript(render(:partial => 'contests/history', :locals => {:contest => @contest, :journals => @jour, :state => true})) %>');
|
||||||
|
$('#pre_show').html('<%= escape_javascript(render(:partial => 'pre_show', :locals => {:content => nil})) %>');
|
||||||
|
$('#contest_message_message').val("");
|
||||||
|
$('#contest_message_reference_user_id').val("");
|
@ -0,0 +1,2 @@
|
|||||||
|
$('#history').html('<%= escape_javascript(render(:partial => 'history', :locals => {:contest => @contest, :journals => @jour, :state => false})) %>');
|
||||||
|
$('#contest_message_reference_user_id').val("");
|
@ -0,0 +1,38 @@
|
|||||||
|
<div class="top-content">
|
||||||
|
<%= form_tag({:controller => 'contests', :action => 'index'}, :method => :get) do %>
|
||||||
|
<table width="940px">
|
||||||
|
<tr>
|
||||||
|
<td class="info_font" style="width: 220px; color: #15bccf"><%= l(:label_contest_innovate) %></td>
|
||||||
|
<td class="location-list"><strong><%= l(:label_user_location) %> :</strong></td>
|
||||||
|
<td rowspan="2">
|
||||||
|
<% if User.current.logged? %>
|
||||||
|
<% unless User.current.user_extensions.identity == 1 %>
|
||||||
|
<%= link_to(l(:label_newtype_contest), {:controller => 'contests', :action => 'new_contest'}, :class => 'icon icon-add') %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</td>
|
||||||
|
<td rowspan="2" >
|
||||||
|
<div class="project-search" style="float: right">
|
||||||
|
<%= text_field_tag 'name', params[:name], :size => 30 %>
|
||||||
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
||||||
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding-left: 8px"><a><%= link_to request.host()+"/contests", :controller => 'contests', :action => 'index' %> </a></td>
|
||||||
|
<td ><%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_contest_innovate), :controller => 'contests', :action => 'index' %></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% if @contests.size > 0%>
|
||||||
|
<%= sort_contest(@s_state)%>
|
||||||
|
<div id="bid-show">
|
||||||
|
<%= render :partial => 'contest_list', :locals => {:contests => @contests, :contest_pages => @contest_pages} %>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<%= render :partial => "layouts/no_content"%>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% html_title l(:label_contest_list)%>
|
@ -0,0 +1,2 @@
|
|||||||
|
$('#history').html('<%= escape_javascript(render(:partial => 'history', :locals => {:contest => @contest, :journals => @jour, :state => @state})) %>');
|
||||||
|
$('#contest_message_reference_user_id').val("");
|
@ -0,0 +1,5 @@
|
|||||||
|
$('#pre_show').html('<%= escape_javascript(render(:partial => 'pre_show', :locals => {:content => @content})) %>');
|
||||||
|
$('#contest_message_reference_user_id').val("<%= @id%>");
|
||||||
|
showAndScrollTo("pre_show", "contest_message_reference_user_id");
|
||||||
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
<!-- huang -->
|
||||||
|
<h3><%=l(:label_newtype_contest)%></h3>
|
||||||
|
|
||||||
|
<%= labelled_form_for @contest, :url => {:controller => 'contests', :action => 'create_contest'}, method: :post do |f| %>
|
||||||
|
<div class="box tabular">
|
||||||
|
<%= render :partial => 'form_contest', :locals => { :f => f } %>
|
||||||
|
<%= submit_tag l(:button_create) %>
|
||||||
|
<%= javascript_tag "$('#bid_name').focus();" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
@ -0,0 +1,3 @@
|
|||||||
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'contests/new_join', :locals => {:contest => @contest}) %>');
|
||||||
|
showModal('ajax-modal', '400px');
|
||||||
|
$('#ajax-modal').addClass('new-watcher');
|
@ -0,0 +1,31 @@
|
|||||||
|
$('#reward_result_<%= @contesting_project_id %>').html('<%= j(
|
||||||
|
|
||||||
|
if get_prize(@b_p).nil? or get_prize(@b_p) == ""
|
||||||
|
if @contest.deadline < Date.today
|
||||||
|
puts '未评奖'
|
||||||
|
end
|
||||||
|
else
|
||||||
|
|
||||||
|
case get_prize(@b_p)
|
||||||
|
when '-1'
|
||||||
|
image_tag("/images/bid/special_reward.png")
|
||||||
|
when '1'
|
||||||
|
when '0'
|
||||||
|
image_tag("/images/bid/first_reward.png")
|
||||||
|
when '1'
|
||||||
|
image_tag("/images/bid/second_reward.png")
|
||||||
|
when '2'
|
||||||
|
image_tag("/images/bid/third_reward.png")
|
||||||
|
when '3'
|
||||||
|
image_tag("/images/bid/forth_reward.png")
|
||||||
|
when '4'
|
||||||
|
image_tag("/images/bid/fifth_reward.png")
|
||||||
|
when '5'
|
||||||
|
image_tag("/images/bid/qualified.png")
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
)
|
||||||
|
%>')
|
||||||
|
|
||||||
|
$('#<%= @contesting_project_id %>').hide()
|
@ -0,0 +1,30 @@
|
|||||||
|
<!-- added by bai -->
|
||||||
|
<h3><%=l(:label_settings)%></h3>
|
||||||
|
<script type="text/javascript" language="javascript">
|
||||||
|
function show(id, id_t, label_reward, label_money, label_credit, label_content) {
|
||||||
|
var text = $('#' + id);
|
||||||
|
var text_t = $('#' + id_t);
|
||||||
|
if (text.val() == 0) {
|
||||||
|
text_t.attr("placeholder", label_reward);
|
||||||
|
}
|
||||||
|
if (text.val() == 1) {
|
||||||
|
text_t.attr("placeholder", label_money);
|
||||||
|
}
|
||||||
|
if (text.val() == 3) {
|
||||||
|
text_t.attr("placeholder", label_credit);
|
||||||
|
}
|
||||||
|
if (text.val() == 2) {
|
||||||
|
text_t.attr("placeholder", label_content);
|
||||||
|
}
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<%= error_messages_for 'contest' %>
|
||||||
|
|
||||||
|
<%= labelled_form_for @contest, :url => update_contest_contest_path(@contest) do |f| %>
|
||||||
|
<div class="box tabular">
|
||||||
|
<%= render :partial => 'form_contest', :locals => { :f => f } %>
|
||||||
|
</div>
|
||||||
|
<%= submit_tag l(:button_create) %>
|
||||||
|
<%= javascript_tag "$('#bid_name').focus();" %>
|
||||||
|
<% end %>
|
@ -0,0 +1,100 @@
|
|||||||
|
|
||||||
|
<style>
|
||||||
|
input[type="submit"].contest_btn {
|
||||||
|
vertical-align: middle;
|
||||||
|
width: 60px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 18px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: rgb(0, 0, 0);
|
||||||
|
background: url("/images/button/bg103.jpg") no-repeat scroll left top transparent;
|
||||||
|
padding: 0px 0px 4px 0px;
|
||||||
|
border-radius: 2px;
|
||||||
|
border: 1px solid rgb(148, 148, 148);
|
||||||
|
box-shadow: none;
|
||||||
|
text-shadow: none;
|
||||||
|
margin-top: -10px;
|
||||||
|
/*margin-right: -4px;*/
|
||||||
|
}
|
||||||
|
input[type="button"].contest_btn {
|
||||||
|
width: 60px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 18px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: rgb(0, 0, 0);
|
||||||
|
background: url("/images/button/bg103.jpg") no-repeat scroll left top transparent;
|
||||||
|
padding: 0px 0px 4px 0px;
|
||||||
|
border-radius: 2px;
|
||||||
|
border: 1px solid rgb(148, 148, 148);
|
||||||
|
box-shadow: none;
|
||||||
|
text-shadow: none;
|
||||||
|
margin-top: -10px;
|
||||||
|
margin-right: -2px;
|
||||||
|
}
|
||||||
|
textarea:focus {
|
||||||
|
border: #d5dee9 1px solid;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script type="text/javascript" language="javascript">
|
||||||
|
function clearInfo(id,content) {
|
||||||
|
var text = $('#' + id);
|
||||||
|
if (text.val() == content) {
|
||||||
|
$('#' + id).val('');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function showInfo(id,content) {
|
||||||
|
var text = $('#' + id);
|
||||||
|
if (text.val() == '') {
|
||||||
|
$('#' + id).val(content);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function cancel() {
|
||||||
|
$("#put-bid-form").hide();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<% if User.current.logged? %>
|
||||||
|
<!--我要竞标弹出框-->
|
||||||
|
<div id = 'flash' style="float:left; width: 100%; display: none" ></div>
|
||||||
|
<div id="put-bid-form" style="display: none">
|
||||||
|
<%= form_for "contest_for_save", :remote=>true, :url => {:controller => 'contests', :action => 'add'}, :update => "contesting_project_list", :complete => '$("#put-bid-form").hide();' do |f| %>
|
||||||
|
<table id="contesting_table" border="0" width="100%" style="margin-left: 40px;"> <!--该table为点击我要参加后弹出的-->
|
||||||
|
<tr>
|
||||||
|
<td><%= select_tag 'contest', options_for_select(select_option_helper(@option)), :name => 'contest', :class => 'grayline' %></td>
|
||||||
|
<div id="prompt_create_pro">
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
<div class="font_lighter" style="font-size: 13px;">
|
||||||
|
<%= link_to '创建项目', new_project_path(course: 0, project_type: 0), :target=>'_blank'%> <!--跳转到project的new.html.erb-->
|
||||||
|
</div>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</div>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td><%= f.text_area :contest_message, :id => "contest_message", :required => true, :rows => 4, :cols => 40, :placeholder => l(:label_bid_reason), :style => "resize: none;", :class => 'noline'%></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<%= submit_tag l(:button_add), :name => nil , :class => "enterprise",
|
||||||
|
:onmouseout => "this.style.backgroundPosition = 'left top'",
|
||||||
|
:onmouseover => "this.style.backgroundPosition = 'left -30px'"%>
|
||||||
|
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "cancel();",
|
||||||
|
:type => 'button', :class => "enterprise", :onmouseout => "this.style.backgroundPosition = 'left top'",
|
||||||
|
:onmouseover => "this.style.backgroundPosition = 'left -30px'" %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<div id='contesting_project_list'>
|
||||||
|
<%= render :partial => 'project_list', :locals => {:contesting_project => @contesting_project,:contest => @contest} %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,102 @@
|
|||||||
|
|
||||||
|
<style>
|
||||||
|
input[type="submit"].contest_btn {
|
||||||
|
vertical-align: middle;
|
||||||
|
width: 60px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 18px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: rgb(0, 0, 0);
|
||||||
|
background: url("/images/button/bg103.jpg") no-repeat scroll left top transparent;
|
||||||
|
padding: 0px 0px 4px 0px;
|
||||||
|
border-radius: 2px;
|
||||||
|
border: 1px solid rgb(148, 148, 148);
|
||||||
|
box-shadow: none;
|
||||||
|
text-shadow: none;
|
||||||
|
margin-top: -10px;
|
||||||
|
/*margin-right: -4px;*/
|
||||||
|
}
|
||||||
|
input[type="button"].contest_btn {
|
||||||
|
width: 60px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 18px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: rgb(0, 0, 0);
|
||||||
|
background: url("/images/button/bg103.jpg") no-repeat scroll left top transparent;
|
||||||
|
padding: 0px 0px 4px 0px;
|
||||||
|
border-radius: 2px;
|
||||||
|
border: 1px solid rgb(148, 148, 148);
|
||||||
|
box-shadow: none;
|
||||||
|
text-shadow: none;
|
||||||
|
margin-top: -10px;
|
||||||
|
margin-right: -2px;
|
||||||
|
}
|
||||||
|
textarea:focus {
|
||||||
|
border: #d5dee9 1px solid;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script type="text/javascript" language="javascript">
|
||||||
|
function clearInfo(id,content) {
|
||||||
|
var text = $('#' + id);
|
||||||
|
if (text.val() == content) {
|
||||||
|
$('#' + id).val('');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function showInfo(id,content) {
|
||||||
|
var text = $('#' + id);
|
||||||
|
if (text.val() == '') {
|
||||||
|
$('#' + id).val(content);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function cancel() {
|
||||||
|
$("#put-bid-form").hide();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<% if User.current.logged? %>
|
||||||
|
<!--我要以发布应用的形式参加竞赛-弹出框-->
|
||||||
|
<div id = 'flash' style="float:left; width: 100%; display: nonea" ></div>
|
||||||
|
<div id="put-bid-form" style="display: none">
|
||||||
|
<%= form_for "contest_for_save", :remote=>true, :url => {:controller => 'contests', :action => 'add_softapplication'}, :update => "contesting_softapplication_list", :complete => '$("#put-bid-form").hide();' do |f| %>
|
||||||
|
<table id="contesting_table" border="0" width="100%" style="margin-left: 40px;"> <!--该table为点击我要参加后弹出的-->
|
||||||
|
<tr>
|
||||||
|
<td><%= select_tag 'contest', options_for_select(select_option_app_helper(@softapplication)), :name => 'contest', :class => 'grayline' %></td>
|
||||||
|
<div id="prompt_create_pro">
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
<div class="font_lighter" style="font-size: 13px;">
|
||||||
|
<%= link_to '发布应用', new_softapplication_path(:target=>'_blank'), :target=>'_blank' %>
|
||||||
|
</div>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</div>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td><%= f.text_area :contest_message, :id => "contest_message", :required => true, :rows => 4, :cols => 40, :placeholder => l(:label_bid_reason), :style => "resize: none;", :class => 'noline'%></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<%= submit_tag l(:button_add), :name => nil , :class => "enterprise",
|
||||||
|
:onmouseout => "this.style.backgroundPosition = 'left top'",
|
||||||
|
:onmouseover => "this.style.backgroundPosition = 'left -30px'"%>
|
||||||
|
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "cancel();",
|
||||||
|
:type => 'button', :class => "enterprise", :onmouseout => "this.style.backgroundPosition = 'left top'",
|
||||||
|
:onmouseover => "this.style.backgroundPosition = 'left -30px'" %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div id='contesting_softapplication_list'>
|
||||||
|
<%= render :partial => 'softapplication_list', :locals => {:contesting_softapplication => @contesting_softapplication,:contest => @contest} %>
|
||||||
|
</div>
|
||||||
|
|
@ -0,0 +1,64 @@
|
|||||||
|
<%= form_for(@softapplication) do |f| %>
|
||||||
|
|
||||||
|
<% if @softapplication.errors.any? %>
|
||||||
|
<div id="error_explanation">
|
||||||
|
<h2><%= pluralize(@softapplication.errors.count, "error") %> prohibited this softapplication from being saved:</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<% @softapplication.errors.full_messages.each do |msg| %>
|
||||||
|
<li><%= msg %></li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<tr style="width:700px; margin-left: -10px">
|
||||||
|
<td><%= l(:label_softapplication_name) %></td>
|
||||||
|
<td style="require, color: #bb0000"> * </td>:
|
||||||
|
<td ><%= f.text_field :name, :required => true, :size => 60, :style => "width:400px;" %></td>
|
||||||
|
<td><%= l(:label_softapplication_name_condition)%></td>
|
||||||
|
</tr></ br><br /><br />
|
||||||
|
|
||||||
|
<tr style="width:800px;">
|
||||||
|
<td><%= l(:label_softapplication_version_available) %></td>
|
||||||
|
<td style="require, color: #bb0000"> * </td>:
|
||||||
|
<td style="width: 100px"><%= f.text_field :android_min_version_available, :required => true, :size => 60, :style => "width:400px;" %></td>
|
||||||
|
|
||||||
|
</tr></ br><br /><br />
|
||||||
|
|
||||||
|
<tr style="width:800px;">
|
||||||
|
<td><%= l(:label_softapplication_type) %></td>
|
||||||
|
<td style="require, color: #bb0000"> * </td>:
|
||||||
|
<td style="width: 100px"><%= f.text_field :app_type_name, :required => true, :size => 60, :style => "width:400px;" %></td>
|
||||||
|
|
||||||
|
</tr></ br><br /><br />
|
||||||
|
|
||||||
|
|
||||||
|
<tr style="width:800px;">
|
||||||
|
<td><%= l(:label_softapplication_description) %></td>
|
||||||
|
<td style="require, color: #bb0000"> * </td>:
|
||||||
|
<td style="width: 100px"><%= f.text_field :description, :required => true, :size => 60, :style => "width:400px;" %></td>
|
||||||
|
|
||||||
|
</tr></ br><br /><br />
|
||||||
|
|
||||||
|
|
||||||
|
<fieldset style="width: 600px">
|
||||||
|
<div>
|
||||||
|
<%=l(:label_upload_softapplication_packets)%> :<br />
|
||||||
|
<p id="put-bid-form-partial">
|
||||||
|
<%= render :partial => 'attachments/form' %>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</fieldset></tr></ br></ br></ br></ br></ br>
|
||||||
|
|
||||||
|
<fieldset style="width: 600px">
|
||||||
|
<div>
|
||||||
|
<span><%=l(:label_upload_softapplication_photo)%> :</span>(<span style="font-size: 3px"><%=l(:label_upload_softapplication_photo_condition)%></span>)<br />
|
||||||
|
<p id="put-bid-form-partial">
|
||||||
|
<%= render :partial => 'attachments/form' %>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<% end %>
|
||||||
|
|
@ -0,0 +1,32 @@
|
|||||||
|
<% reply_allow = JournalsForMessage.create_by_user? User.current %>
|
||||||
|
|
||||||
|
|
||||||
|
<div id='leave-message'>
|
||||||
|
<%= render :partial => 'new_message', :locals => {:softapplication => @softapplication, :sta => @state} %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<% if journals.size >0 %>
|
||||||
|
<ul class="message-for-user">
|
||||||
|
<% for journal in journals%>
|
||||||
|
<li id='word_li_<%= journal.id.to_s %>' class="outer-message-for-user">
|
||||||
|
<span class="portrait"><%= image_tag(url_to_avatar(journal.user), :class => "avatar") %></span>
|
||||||
|
<span class="body">
|
||||||
|
<span class="user"><%= link_to journal.user, user_path(journal.user)%></span>
|
||||||
|
<span class="font_lighter"><% label = l(:label_contest_requirement) %></span>
|
||||||
|
<div> <%= textilizable journal.notes%> </div>
|
||||||
|
<span class="font_lighter"><%= l(:label_bids_published) %> <%= time_tag(journal.created_on).html_safe %> <%= l(:label_bids_published_ago) %></span>
|
||||||
|
|
||||||
|
<% ids = 'project_respond_form_'+ journal.id.to_s%>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<% if @user==User.current|| User.current.admin? %>
|
||||||
|
<%= link_to(l(:label_bid_respond_delete), {:controller => 'words', :action => 'destroy', :object_id => journal, :user_id => @user}, :remote => true, :confirm => l(:text_are_you_sure), :method => 'delete', :class => "delete", :title => l(:button_delete)) %>
|
||||||
|
<% end %>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
<div style="clear: both;"></div>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
<% end %>
|
@ -0,0 +1,53 @@
|
|||||||
|
|
||||||
|
<script type="text/javascript" language="javascript">
|
||||||
|
function clearInfo(id, content) {
|
||||||
|
var text = $('#' + id);
|
||||||
|
if (text.val() == content) {
|
||||||
|
$('#' + id).val('');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function showInfo(id, content) {
|
||||||
|
var text = $('#' + id);
|
||||||
|
if (text.val() == '') {
|
||||||
|
$('#' + id).val(content);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<%= form_for('softapplication_message',
|
||||||
|
:remote => true, :method => :post,
|
||||||
|
:url => {:controller => 'softapplications',
|
||||||
|
:action => 'create_message',
|
||||||
|
:id => softapplication,
|
||||||
|
:sta => sta}
|
||||||
|
) do |f|%>
|
||||||
|
|
||||||
|
<div id = 'pre_show'>
|
||||||
|
<%= render :partial => 'pre_show', :locals => {:content => @content} %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<% if User.current.logged? %>
|
||||||
|
<table border="0" width="525px" align="center" >
|
||||||
|
<tr>
|
||||||
|
<td><%= f.text_area 'message', :rows => 3, :cols => 65, :placeholder => l(:label_my_respond), :style => "resize: none;", :class => 'noline'%></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<%= f.text_field :reference_user_id, :style=>"display:none"%> <!--what function?-->
|
||||||
|
|
||||||
|
<!-- modified by bai -->
|
||||||
|
<table border="0" width="518px" align="center">
|
||||||
|
<tr>
|
||||||
|
<td align="right"> <%= submit_tag l(:label_button_ok), :name => nil , :class => "softapplication_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'"%>
|
||||||
|
<%= submit_tag l(:button_clear_requirement), :name => nil, :onclick => "clearMessage('softapplication_message_message');", :type => 'button', :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'" %> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<!-- end -->
|
||||||
|
<% else %>
|
||||||
|
<div style="font-size: 14px;margin:10px;">
|
||||||
|
<%= l(:label_user_login_tips) %>
|
||||||
|
<%= link_to l(:label_user_login_new), signin_path %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- fq -->
|
||||||
|
<% unless content.nil?%>
|
||||||
|
<table width="60%" style="margin-left: 60px;">
|
||||||
|
<tr>
|
||||||
|
<td> <%= textilizable content %></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><%= hidden_field_tag 'reference_content', params[:reference_content], :value => content%></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
|||||||
|
$('#message_history').html('<%= escape_javascript(render(:partial => 'history_message', :locals => {:softapplication => @softapplication, :journals => @jour, :state => @state})) %>');
|
||||||
|
$('#softapplication_message_reference_user_id').val("");
|
@ -0,0 +1,4 @@
|
|||||||
|
$('#history').html('<%= escape_javascript(render(:partial => 'softapplications/message_history', :locals => {:contest => @softapplication, :journals => @jour, :state => true})) %>');
|
||||||
|
$('#pre_show').html('<%= escape_javascript(render(:partial => 'pre_show', :locals => {:content => nil})) %>');
|
||||||
|
$('#softapplication_message_message').val("");
|
||||||
|
$('#softapplication_message_reference_user_id').val("");
|
@ -0,0 +1,6 @@
|
|||||||
|
<h1>Editing softapplication</h1>
|
||||||
|
|
||||||
|
<%= render 'form' %>
|
||||||
|
|
||||||
|
<%= link_to 'Show', @softapplication %> |
|
||||||
|
<%= link_to 'Back', softapplications_path %>
|
@ -0,0 +1,33 @@
|
|||||||
|
<h1>Listing softapplications</h1>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Description</th>
|
||||||
|
<th>App type</th>
|
||||||
|
<th>App type name</th>
|
||||||
|
<th>Android min version available</th>
|
||||||
|
<th>User</th>
|
||||||
|
<th></th>
|
||||||
|
<th></th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<% @softapplications.each do |softapplication| %>
|
||||||
|
<tr>
|
||||||
|
<td><%= softapplication.name %></td>
|
||||||
|
<td><%= softapplication.description %></td>
|
||||||
|
<td><%= softapplication.app_type_id %></td>
|
||||||
|
<td><%= softapplication.app_type_name %></td>
|
||||||
|
<td><%= softapplication.android_min_version_available %></td>
|
||||||
|
<td><%= softapplication.user_id %></td>
|
||||||
|
<td><%= link_to 'Show', softapplication %></td>
|
||||||
|
<td><%= link_to 'Edit', edit_softapplication_path(softapplication) %></td>
|
||||||
|
<td><%= link_to 'Destroy', softapplication, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||||
|
</tr>
|
||||||
|
<% end %>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<%= link_to 'New Softapplication', new_softapplication_path %>
|
@ -0,0 +1,2 @@
|
|||||||
|
$('#message_history').html('<%= escape_javascript(render(:partial => 'message_history', :locals => {:softapplication => @softapplication, :journals => @jour, :state => @state})) %>');
|
||||||
|
$('#softapplication_message_reference_user_id').val("");
|
@ -0,0 +1,76 @@
|
|||||||
|
<h3 style="font-size: 18px"><%= l(:label_release_softapplication)%></h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div >
|
||||||
|
<%= form_for Softapplication.new, :url => {:controller => 'softapplications', :action => 'create'}, :update => "bidding_project_list", :complete => '$("#put-bid-form").hide();', :html => {:multipart => true, :id => 'add_homework_form'} do |f| %>
|
||||||
|
<fieldset class="contes-new-box">
|
||||||
|
<!-- <legend>
|
||||||
|
<%= l(:label_attachment_plural) %>
|
||||||
|
</legend> -->
|
||||||
|
<tr style="width:700px; margin-left: -10px">
|
||||||
|
<span><%= l(:label_softapplication_name) %></span>
|
||||||
|
<span class="contest-star"> * </span>: <td ><%= f.text_field :name, :required => true, :size => 60, :style => "width:400px;" %></td>
|
||||||
|
<span><%= l(:label_softapplication_name_condition)%></span>
|
||||||
|
</tr></ br>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<tr style="width:800px;">
|
||||||
|
<span><%= l(:label_softapplication_version_available) %></span>
|
||||||
|
<span class="contest-star"> * </span>: <td style="width: 100px"><%= f.text_field :android_min_version_available, :required => true, :size => 60, :style => "width:400px;" %></td>
|
||||||
|
|
||||||
|
</tr></ br>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<tr style="width:800px;">
|
||||||
|
<span><%= l(:label_softapplication_type) %></span>
|
||||||
|
|
||||||
|
<span class="contest-star"> * </span>: <td style="width: 100px"><%= f.text_field :app_type_name, :required => true, :size => 60, :style => "width:400px;" %></td>
|
||||||
|
|
||||||
|
</tr></ br>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<tr style="width:800px;">
|
||||||
|
<span><%= l(:label_softapplication_description) %></span>
|
||||||
|
<span class="contest-star"> * </span>: <td style="width: 100px"><%= f.text_field :description, :required => true, :size => 60, :style => "width:400px;" %></td>
|
||||||
|
|
||||||
|
</tr></ br>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<tr style="width:800px;">
|
||||||
|
<span><%= l(:label_softapplication_developers) %></span>
|
||||||
|
<span class="contest-star"> * </span>: <td style="width: 100px"><%= f.text_field :application_developers, :required => true, :size => 60, :style => "width:400px;" %></td>
|
||||||
|
|
||||||
|
</tr></ br>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<fieldset style="width: 500px">
|
||||||
|
<legend>上传应用软件包和应用截图</legend>
|
||||||
|
<%= render_flash_messages %>
|
||||||
|
<p id="put-bid-form-partial">
|
||||||
|
<%= render :partial => 'attachments/form' %>
|
||||||
|
</p>
|
||||||
|
<p style="font-size: 10px">(<%=l(:label_upload_softapplication_photo_condition)%>)</p>
|
||||||
|
|
||||||
|
</fieldset>
|
||||||
|
</fieldset></br>
|
||||||
|
<div class="align-center"><%= submit_tag l(:button_create), :onclick => "return true" %></div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function j_submit () {
|
||||||
|
alert('start')
|
||||||
|
var submit_homework = function(){
|
||||||
|
$('#add_homework_form').clone().attr('action', '<%= url_for({:controller => "softapplications", :action => "create"})+".js" %>').ajaxSubmit()
|
||||||
|
};
|
||||||
|
alert('stop')
|
||||||
|
$.globalEval(submit_homework());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<% end %>
|
||||||
|
</div>
|
@ -0,0 +1,12 @@
|
|||||||
|
<h3><%=l(:label_release_softapplication)%></h3>
|
||||||
|
<!-- <%= render 'form' %>
|
||||||
|
|
||||||
|
<%= link_to 'Back', softapplications_path %> -->
|
||||||
|
|
||||||
|
<%= labelled_form_for @softapplication, :url => {:controller => 'softapplications', :action => 'create'}, method: :post do |f| %>
|
||||||
|
<div class="box tabular">
|
||||||
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||||
|
<%= submit_tag l(:button_create) %>
|
||||||
|
|
||||||
|
<% end %>
|
||||||
|
</div>
|
@ -0,0 +1,12 @@
|
|||||||
|
<h3><%=l(:label_release_softapplication)%></h3>
|
||||||
|
<!-- <%= render 'form' %>
|
||||||
|
|
||||||
|
<%= link_to 'Back', softapplications_path %> -->
|
||||||
|
|
||||||
|
<%= labelled_form_for @softapplication, :url => {:controller => 'softapplications', :action => 'create'}, method: :post do |f| %>
|
||||||
|
<div class="box tabular">
|
||||||
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||||
|
<%= submit_tag l(:button_create) %>
|
||||||
|
<!-- <%= javascript_tag "$('#bid_name').focus();" %> -->
|
||||||
|
<% end %>
|
||||||
|
</div>
|
@ -0,0 +1,64 @@
|
|||||||
|
<h3><%= l(:label_release_softapplication)%></h3> <!-- <%= render 'form' %>
|
||||||
|
|
||||||
|
<%= link_to 'Back', softapplications_path %> -->
|
||||||
|
|
||||||
|
|
||||||
|
<div id="put-bid-form" style="">
|
||||||
|
<%= form_for Softapplication.new, :url => {:controller => 'softapplications', :action => 'create'}, :update => "bidding_project_list", :complete => '$("#put-bid-form").hide();', :html => {:multipart => true, :id => 'add_homework_form'} do |f| %>
|
||||||
|
<fieldset>
|
||||||
|
<legend>
|
||||||
|
<%= l(:label_attachment_plural) %>
|
||||||
|
</legend>
|
||||||
|
<tr style="width:700px; margin-left: -10px">
|
||||||
|
<td><%= l(:label_softapplication_name) %></td>
|
||||||
|
<td style="require, color: #bb0000"> * </td>: <td ><%= f.text_field :name, :required => true, :size => 60, :style => "width:400px;" %></td>
|
||||||
|
<td><%= l(:label_softapplication_name_condition)%></td>
|
||||||
|
</tr></ br>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<tr style="width:800px;">
|
||||||
|
<td><%= l(:label_softapplication_version_available) %></td>
|
||||||
|
<td style="require, color: #bb0000"> * </td>: <td style="width: 100px"><%= f.text_field :android_min_version_available, :required => true, :size => 60, :style => "width:400px;" %></td>
|
||||||
|
|
||||||
|
</tr></ br>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<tr style="width:800px;">
|
||||||
|
<td><%= l(:label_softapplication_type) %></td>
|
||||||
|
|
||||||
|
<td style="require, color: #bb0000"> * </td>: <td style="width: 100px"><%= f.text_field :app_type_name, :required => true, :size => 60, :style => "width:400px;" %></td>
|
||||||
|
|
||||||
|
</tr></ br>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<tr style="width:800px;">
|
||||||
|
<td><%= l(:label_softapplication_description) %></td>
|
||||||
|
<td style="require, color: #bb0000"> * </td>: <td style="width: 100px"><%= f.text_field :description, :required => true, :size => 60, :style => "width:400px;" %></td>
|
||||||
|
|
||||||
|
</tr></ br>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<%= render_flash_messages %>
|
||||||
|
<p id="put-bid-form-partial">
|
||||||
|
<%= render :partial => 'attachments/form' %>
|
||||||
|
</p>
|
||||||
|
</fieldset>
|
||||||
|
<%= submit_tag l(:button_create), :onclick => "return true" %>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function j_submit () {
|
||||||
|
alert('start')
|
||||||
|
var submit_homework = function(){
|
||||||
|
$('#add_homework_form').clone().attr('action', '<%= url_for({:controller => "softapplications", :action => "create"})+".js" %>').ajaxSubmit()
|
||||||
|
};
|
||||||
|
alert('stop')
|
||||||
|
$.globalEval(submit_homework());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<% end %>
|
||||||
|
</div>
|
@ -0,0 +1,5 @@
|
|||||||
|
$('#pre_show').html('<%= escape_javascript(render(:partial => 'pre_show', :locals => {:content => @content})) %>');
|
||||||
|
$('#softapplication_message_reference_user_id').val("<%= @id%>");
|
||||||
|
showAndScrollTo("pre_show", "softapplication_message_reference_user_id");
|
||||||
|
|
||||||
|
|
@ -0,0 +1,85 @@
|
|||||||
|
<style>
|
||||||
|
.softapplication-img .soft-application {
|
||||||
|
float: left;
|
||||||
|
width: 25%;
|
||||||
|
height: 200px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<p id="notice"><%= notice %></p>
|
||||||
|
|
||||||
|
<!-- <%= image_tag(url_to_avatar(@user), :class => "avatar2") %> -->
|
||||||
|
<div style="height: 130px">
|
||||||
|
<tr>
|
||||||
|
<td colspan="2" valign="top" width="320" >
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<table width="100%" border="0">
|
||||||
|
<tr style="font-size: 18px">
|
||||||
|
<td colspan="2" valign="top"><strong><%= @softapplication.name %></strong></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>所属类别:<%= @softapplication.app_type_name %></td>
|
||||||
|
<td>发布时间:<%=format_time @softapplication.created_at %></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>发布人员:<%= @softapplication.user.name %></td>
|
||||||
|
<td>系统支持:<%= @softapplication.android_min_version_available %></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<span>应用下载:</span>
|
||||||
|
<span><% options = {:author => true, :deletable => @softapplication.user.eql?(User.current) } %>
|
||||||
|
<%= render :partial => 'attachments/app_link', :locals => {:attachments => @app_items, :options => options} %></span>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td>开发人员:<%= @softapplication.application_developers %></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</div>
|
||||||
|
<div class="underline-contests_one"></div>
|
||||||
|
|
||||||
|
<div style="height: 60px">
|
||||||
|
<strong><div style="font-size: 15px">应用简介:</div></strong>
|
||||||
|
<div><%= @softapplication.description %></div>
|
||||||
|
</div>
|
||||||
|
<div class="underline-contests_one"></div>
|
||||||
|
|
||||||
|
<div style="height: 240px">
|
||||||
|
<strong><div style="font-size: 15px">软件截图:</div></strong>
|
||||||
|
<div class="softapplication-img">
|
||||||
|
<% @image_results.take(4).each do |attachment| %>
|
||||||
|
<%= link_to_attachment_img attachment, :class => "soft-application", :download => "true" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div style='clear :left;'></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="underline-contests_one"></div>
|
||||||
|
|
||||||
|
<div style="height: 50px">
|
||||||
|
<div style="font-size: 15px"><strong>软件评论:</strong></div>
|
||||||
|
<div></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--提示登录后对应用进行评价-->
|
||||||
|
<div id="history">
|
||||||
|
<%= render :partial => 'message_history', :locals => { :contest => @softapplication, :journals => @jour, :state => false} %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--分页-->
|
||||||
|
<div class="pagination" style="float:left;">
|
||||||
|
<ul>
|
||||||
|
<%= pagination_links_full @feedback_pages %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<%#= link_to '返回竞赛页面', show_softapplication_contest_path(@softapplication.contest) %>
|
||||||
|
</div>
|
@ -0,0 +1,15 @@
|
|||||||
|
<div id="issues">
|
||||||
|
<% if contests_results.size > 0 %>
|
||||||
|
<hr />
|
||||||
|
<% contests_results.each do |contest| %>
|
||||||
|
<p class="font_description2">
|
||||||
|
<strong><%= l(:label_tags_contest) %>:<%= link_to "#{contest.name}",
|
||||||
|
:controller => "contests",:action => "show",:id => contest.id %></strong>
|
||||||
|
<br />
|
||||||
|
<strong><%= l(:label_tags_contest_description) %>:</strong><%= contest.description %>
|
||||||
|
<%= contest.updated_on %>
|
||||||
|
</p>
|
||||||
|
<div class="line_under"></div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue